Class: Ridley::Client
- Inherits:
-
Object
- Object
- Ridley::Client
- Defined in:
- lib/ridley-connectors/client.rb
Instance Attribute Summary collapse
-
#ssh ⇒ Object
Returns the value of attribute ssh.
-
#winrm ⇒ Object
Returns the value of attribute winrm.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Client
constructor
A new instance of Client.
- #old_initialize ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Client
Returns a new instance of Client.
43 44 45 46 47 48 49 50 51 52 |
# File 'lib/ridley-connectors/client.rb', line 43 def initialize( = {}) old_initialize() @options = .reverse_merge( ssh: Hash.new, winrm: Hash.new, ).deep_symbolize_keys @ssh = @options[:ssh] @winrm = @options[:winrm] end |
Instance Attribute Details
#ssh ⇒ Object
Returns the value of attribute ssh.
3 4 5 |
# File 'lib/ridley-connectors/client.rb', line 3 def ssh @ssh end |
#winrm ⇒ Object
Returns the value of attribute winrm.
4 5 6 |
# File 'lib/ridley-connectors/client.rb', line 4 def winrm @winrm end |
Instance Method Details
#old_initialize ⇒ Object
42 |
# File 'lib/ridley-connectors/client.rb', line 42 alias_method :old_initialize, :initialize |