Sha256: 271c0b17b1d52446e7b005e3ecf21fe927eefe97d9d5462d864ffbd16d304459
Contents?: true
Size: 430 Bytes
Versions: 44
Compression:
Stored size: 430 Bytes
Contents
#!/usr/bin/env ruby require File.dirname(__FILE__) + "/../lib/geordi" include Geordi catching_errors do retrieve_data! no_bash = ARGV.delete('--no-bash') remote_command = ARGV.join(' ').strip ssh = %(ssh #{user}@#{server}) commands = [ "cd #{path}" ] commands << remote_command unless remote_command.empty? commands << "bash --login" unless no_bash exec ssh + %( -t "#{commands.join(' && ')}") end
Version data entries
44 entries across 44 versions & 1 rubygems