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

Version Path
geordi-0.11.0 bin/shell-for
geordi-0.10.0 bin/shell-for
geordi-0.9.12 bin/shell-for
geordi-0.9.11 bin/shell-for
geordi-0.9.10 bin/shell-for
geordi-0.9.9 bin/shell-for
geordi-0.9.8 bin/shell-for
geordi-0.9.7 bin/shell-for
geordi-0.9.6 bin/shell-for
geordi-0.9.5 bin/shell-for
geordi-0.9.4 bin/shell-for
geordi-0.9.3 bin/shell-for
geordi-0.9.2 bin/shell-for
geordi-0.9.1 bin/shell-for
geordi-0.9.0 bin/shell-for
geordi-0.8.1 bin/shell-for
geordi-0.8.0 bin/shell-for
geordi-0.7.0 bin/shell-for
geordi-0.6.1 bin/shell-for
geordi-0.6.0 bin/shell-for