SSH.execute uses the new port helper

This commit is contained in:
Mitchell Hashimoto 2010-02-15 18:52:33 -08:00
parent 57de04abac
commit ebc3c70f8b
1 changed files with 0 additions and 1 deletions

View File

@ -13,7 +13,6 @@ module Vagrant
end
def execute
port = Vagrant.config.vm.forwarded_ports[Vagrant.config.ssh.forwarded_port_key][:hostport]
Net::SSH.start(Vagrant.config.ssh.host, Vagrant.config[:ssh][:username], :port => port, :password => Vagrant.config[:ssh][:password]) do |ssh|
yield ssh
end