Method: Beaker::SshConnection#initialize

Defined in:
lib/beaker/ssh_connection.rb

#initialize(name_hash, user = nil, ssh_opts = {}, options = {}) ⇒ SshConnection

Returns a new instance of SshConnection.



30
31
32
33
34
35
36
37
38
39
# File 'lib/beaker/ssh_connection.rb', line 30

def initialize name_hash, user = nil, ssh_opts = {}, options = {}
  @vmhostname = name_hash[:vmhostname]
  @ip = name_hash[:ip]
  @hostname = name_hash[:hostname]
  @user = user
  @ssh_opts = ssh_opts
  @logger = options[:logger]
  @options = options
  @ssh_connection_preference = @options[:ssh_connection_preference]
end