lib/cucumber/chef/steps/ssh_steps.rb in cucumber-chef-3.0.0.rc.0 vs lib/cucumber/chef/steps/ssh_steps.rb in cucumber-chef-3.0.0.rc.1

- old
+ new

@@ -9,11 +9,11 @@ table.hashes.each do |hash| id = hash["id"] @ssh_sessions[id] and !@ssh_sessions[id].closed? and @ssh_sessions[id].close @ssh_sessions[id] = ZTK::SSH.new - @ssh_sessions[id].config.proxy_host_name = $test_lab.ip + @ssh_sessions[id].config.proxy_host_name = $cc_client.test_lab.ip @ssh_sessions[id].config.proxy_user = Cucumber::Chef.lab_user @ssh_sessions[id].config.proxy_keys = Cucumber::Chef.lab_identity hash['hostname'] and (@ssh_sessions[id].config.host_name = hash['hostname']) hash['username'] and (@ssh_sessions[id].config.user = hash['username']) @@ -30,11 +30,11 @@ lambda { @connection and @connection.ssh.shutdown! @connection = ZTK::SSH.new(:timeout => 120, :ignore_exit_status => true) - @connection.config.proxy_host_name = $test_lab.ip - @connection.config.proxy_port = $test_lab.port + @connection.config.proxy_host_name = $cc_client.test_lab.ip + @connection.config.proxy_port = $cc_client.test_lab.port @connection.config.proxy_user = Cucumber::Chef.lab_user @connection.config.proxy_keys = Cucumber::Chef.lab_identity hostname and (@connection.config.host_name = hostname) session["password"] and (@connection.config.password = session["password"])