lib/cucumber/chef/helpers/command.rb in cucumber-chef-2.1.0.rc.1 vs lib/cucumber/chef/helpers/command.rb in cucumber-chef-2.1.0.rc.2

- old
+ new

@@ -22,10 +22,10 @@ module Cucumber::Chef::Helpers::Command ################################################################################ def command_run_remote(name, command, expected_exit_code=0) - command = %Q(ssh #{name} #{command} 2>&1) + command = %Q(ssh -i #{File.join(Cucumber::Chef.lab_user_home_dir, ".ssh", "id_rsa")} #{name} #{command} 2>&1) logger.info { "command_run_remote(#{command})" } output = %x(#{command}) if !expected_exit_code.nil? && ($? != expected_exit_code) message = "command_run_remote(#{command}) failed (code=#{$?},output='#{output.chomp}')" logger.fatal { message }