Swm::Cluster
Inherits JSON::Serializable < Reference < Object
Constructors
load_or_initialize(id : String, client : DockerClient) : Cluster
Sourcenew(name : String, client : DockerClient, use_local_ips : Bool = false)
Sourcenew(pull : JSON::PullParser)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceClass methods
all
Sourcefilename(id : String) : String
Sourcefind(id_or_name : String) : Cluster | Nil
Sourceload(id : String) : Cluster | Nil
SourceInstance methods
fetch_id(client)
Sourcefetch_nodes(client : DockerClient)
Sourcefind_node(name : String) : Node | Nil
Sourceid
Sourceload_nodes
Sourcename
Sourcenodes
Sourcerandom_manager_node
Sourcerm!
Sourceto_h
Sourceto_s
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.
use_local_ips
Source