struct Swm::Container

Defined in:

docker/container.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(id : String, task : String, node : Node) #

[View source]

Instance Method Detail

def clone #

[View source]
def copy_with(id _id = @id, task _task = @task, node _node = @node) #

[View source]
def exec(command : String, user : String | Nil = nil, no_tty : Bool | Nil = false, output : IO | Nil = nil) : String #

[View source]
def id : String #

def node : Node #

def stop #

[View source]
def task : String #

def to_s #
Description copied from class Object

Returns a nicely readable and concise string representation of this object, typically intended for users.

This method should usually not be overridden. It delegates to #to_s(IO) which can be overridden for custom implementations.

Also see #inspect.


[View source]