Class: Ridley::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/ridley-connectors/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(options = {})
  old_initialize(options)
  @options = options.reverse_merge(
    ssh: Hash.new,
    winrm: Hash.new,
  ).deep_symbolize_keys

  @ssh   = @options[:ssh]
  @winrm = @options[:winrm]
end

Instance Attribute Details

#sshObject

Returns the value of attribute ssh.



3
4
5
# File 'lib/ridley-connectors/client.rb', line 3

def ssh
  @ssh
end

#winrmObject

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_initializeObject

Raises:

  • (Errors::ClientKeyFileNotFoundOrInvalid)

    if the option for :client_key does not contain a file path pointing to a readable client key, or is a string containing a valid key



42
# File 'lib/ridley-connectors/client.rb', line 42

alias_method :old_initialize, :initialize