struct Swm::Node

Included Modules

Defined in:

docker/node.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(hostname : String, ip : String, role : String, user : String) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def clone #

[View source]
def copy_with(hostname _hostname = @hostname, ip _ip = @ip, role _role = @role, user _user = @user) #

[View source]
def hostname : String #

def ip : String #

def role : String #

def ssh_host #

[View source]
def to_h #

[View source]
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]
def user : String #