lib/vos/drivers/ssh.rb in vos-0.1.3 vs lib/vos/drivers/ssh.rb in vos-0.1.4

- old
+ new

@@ -75,21 +75,21 @@ end def bash command # somehow net-ssh doesn't executes ~/.profile, so we need to execute it manually # command = ". ~/.profile && #{command}" - stdout_and_stderr, stderr, code, signal = hacked_exec! ssh, command, true return code, stdout_and_stderr end # # Micelaneous # def to_s; options[:host] end + def host; options[:host] end protected attr_accessor :ssh, :sftp def fix_path path @@ -126,10 +126,9 @@ channel.on_request("exit-signal"){|ch, data| exit_signal = data.read_long} end end channel.wait - [stdout_data, stderr_data, exit_code, exit_signal] end end end end \ No newline at end of file