lib/mina/backend/remote.rb in mina-1.0.0.beta2 vs lib/mina/backend/remote.rb in mina-1.0.0.beta3

- old
+ new

@@ -19,17 +19,17 @@ [ssh, '--', command].join(' ') end end def ssh - fail 'No domain set' unless set?(:domain) + ensure!(:domain) args = fetch(:domain) args = "#{fetch(:user)}@#{fetch(:domain)}" if set?(:user) - args << " -i #{fetch(:identity_file)}" if set?(:identity_file) - args << " -p #{fetch(:port)}" if set?(:port) - args << ' -A' if set?(:forward_agent) - args << " #{fetch(:ssh_options)}" if set?(:ssh_options) - args << ' -tt' + args += " -i #{fetch(:identity_file)}" if set?(:identity_file) + args += " -p #{fetch(:port)}" if set?(:port) + args += ' -A' if set?(:forward_agent) + args += " #{fetch(:ssh_options)}" if set?(:ssh_options) + args += ' -tt' "ssh #{args}" end end end