Class: NodeSpec::CommunicationAdapters::Ssh

Inherits:
Object
  • Object
show all
Defined in:
lib/nodespec/communication_adapters/ssh.rb

Class Method Summary collapse

Class Method Details

.communicator_for(node_name, options = {}) ⇒ Object



6
7
8
9
10
# File 'lib/nodespec/communication_adapters/ssh.rb', line 6

def self.communicator_for(node_name, options = {})
  opts = options.dup
  host = opts.delete('host') || node_name
  SshCommunicator.new(host, opts)
end