lib/veewee/provider/core/box/ssh.rb in veewee-0.3.7 vs lib/veewee/provider/core/box/ssh.rb in veewee-0.3.9

- old
+ new

@@ -7,14 +7,15 @@ def ssh(command=nil,options={}) raise Veewee::Error,"Box is not running" unless self.running? + host_ip=self.ip_address + if (options[:interactive]==true) # Command line options extended_command="#{command}" - host_ip=self.ip_address unless host_ip.nil? || host_ip=="" ssh_command="ssh #{ssh_commandline_options(options)} #{host_ip} \"#{extended_command}\"" fg_exec(ssh_command,options) @@ -90,6 +91,5 @@ end # Module end # Module end # Module end # Module -