lib/poolparty/net/remoter/connections.rb
def simplest_run_remote(host=target_host, command=[], extra_ssh_ops={})
      command = command.compact.join(' && ') if command.is_a? Array
      cmd = "ssh #{host} #{ssh_options(extra_ssh_ops)} '#{command}'"
      puts "\n--------------------------------\nrunning_remote:\n #{cmd}\n"
      puts %x{#{cmd}}
    end
# Simply shell out and call ssh, simple, reliable and fewest dependencies, but slow
Simply shell out and call ssh, simple, reliable and fewest dependencies, but slow
Simply shell out and call ssh simple reliable and fewest dependencies but slow
def simplest_run_remote(host=target_host, command=[], extra_ssh_ops={})
      command = command.compact.join(' && ') if command.is_a? Array
      cmd = "ssh #{host} #{ssh_options(extra_ssh_ops)} '#{command}'"
      puts "\n--------------------------------\nrunning_remote:\n #{cmd}\n"
      puts %x{#{cmd}}
    end
def simplest_run_remote ( host = target_host , command = [ ] , extra_ssh_ops = { } ) command = command . compact . join ( ' && ' ) if command . is_a? Array cmd = "ssh #{host} #{ssh_options(extra_ssh_ops)} '#{command}'" puts "\n--------------------------------\nrunning_remote:\n #{cmd}\n" puts %x{ #{ cmd } } end
Simply shell out and call ssh, simple, reliable and fewest dependencies, but slow
Simply shell out and call ssh simple reliable and fewest dependencies but slow
host
target_host
command
extra_ssh_ops