lib/generators/project/features/steps/ssh_steps.rb in cucumber-nagios-0.6.3 vs lib/generators/project/features/steps/ssh_steps.rb in cucumber-nagios-0.6.4
- old
+ new
@@ -50,9 +50,11 @@
@auth_methods ||= %w(password)
@auth_methods << "publickey"
end
When /^I ssh to "([^\"]*)" with the following credentials:$/ do |hostname, table|
+ @keys = []
+ @auth_methods ||= %w(password)
session = table.hashes.first
session_keys = Array.new(@keys)
session_auth_methods = Array.new(@auth_methods)
if session["keyfile"]
session_keys << session["keyfile"]