Class: Shaddox::Server
- Includes:
- SettingContainer
- Defined in:
- lib/shaddox/target.rb
Defined Under Namespace
Classes: SSHActor
Instance Attribute Summary collapse
-
#host ⇒ Object
readonly
### Constructor for Server :host (required) :user (required) :ssh (required for authentication) :installer.
-
#installer ⇒ Object
readonly
### Constructor for Server :host (required) :user (required) :ssh (required for authentication) :installer.
-
#ssh ⇒ Object
readonly
### Constructor for Server :host (required) :user (required) :ssh (required for authentication) :installer.
-
#user ⇒ Object
readonly
### Constructor for Server :host (required) :user (required) :ssh (required for authentication) :installer.
Instance Method Summary collapse
-
#initialize(info) ⇒ Server
constructor
A new instance of Server.
- #new_actor(&block) ⇒ Object
Methods included from SettingContainer
#init_settings, #method_missing
Methods inherited from Target
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
#host ⇒ Object (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 |
#installer ⇒ Object (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 |
#ssh ⇒ Object (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 |
#user ⇒ Object (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 |