Class: Shaddox::Server

Inherits:
Target
  • Object
show all
Includes:
SettingContainer
Defined in:
lib/shaddox/target.rb

Defined Under Namespace

Classes: SSHActor

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from SettingContainer

#init_settings, #method_missing

Methods inherited from Target

#deploy

Constructor Details

#initialize(info) ⇒ Server

Returns a new instance of Server.



107
108
109
110
111
112
# File 'lib/shaddox/target.rb', line 107

def initialize(info)
  @host = info[:host]
  @user = info[:user]
  @ssh = info[:ssh]
  @installer = info[:installer]
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Shaddox::SettingContainer

Instance Attribute Details

#hostObject (readonly)

### Constructor for Server :host (required) :user (required) :ssh (required for authentication) :installer



106
107
108
# File 'lib/shaddox/target.rb', line 106

def host
  @host
end

#installerObject (readonly)

### Constructor for Server :host (required) :user (required) :ssh (required for authentication) :installer



106
107
108
# File 'lib/shaddox/target.rb', line 106

def installer
  @installer
end

#sshObject (readonly)

### Constructor for Server :host (required) :user (required) :ssh (required for authentication) :installer



106
107
108
# File 'lib/shaddox/target.rb', line 106

def ssh
  @ssh
end

#userObject (readonly)

### Constructor for Server :host (required) :user (required) :ssh (required for authentication) :installer



106
107
108
# File 'lib/shaddox/target.rb', line 106

def user
  @user
end

Instance Method Details

#new_actor(&block) ⇒ Object



113
114
115
# File 'lib/shaddox/target.rb', line 113

def new_actor(&block)
  SSHActor.new(host, user, ssh, &block)
end