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, os = nil, options = {}) ⇒ Object



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

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