lib/serverspec/setup.rb in serverspec-0.11.0 vs lib/serverspec/setup.rb in serverspec-0.11.1
- old
+ new
@@ -257,21 +257,21 @@
vagrant_up = `vagrant up #{@hostname}`
config = `vagrant ssh-config #{@hostname}`
if config != ''
config.each_line do |line|
if match = /HostName (.*)/.match(line)
- c.host = match[1]
+ host = match[1]
elsif match = /User (.*)/.match(line)
user = match[1]
elsif match = /IdentityFile (.*)/.match(line)
options[:keys] = [match[1].gsub(/\"/,'')]
elsif match = /Port (.*)/.match(line)
options[:port] = match[1]
end
end
end
<%- end -%>
- c.ssh = Net::SSH.start(c.host, user, options)
+ c.ssh = Net::SSH.start(host, user, options)
end
end
<%- end -%>
end
<% end -%>