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.14.6 bin/shell-for
geordi-0.14.5 bin/shell-for
geordi-0.14.4 bin/shell-for
geordi-0.14.3 bin/shell-for
geordi-0.14.2 bin/shell-for
geordi-0.14.1 bin/shell-for
geordi-0.14.0 bin/shell-for
geordi-0.13.3 bin/shell-for
geordi-0.13.2 bin/shell-for
geordi-0.13.1 bin/shell-for
geordi-0.13.0 bin/shell-for
geordi-0.12.8 bin/shell-for
geordi-0.12.7 bin/shell-for
geordi-0.12.6 bin/shell-for
geordi-0.12.5 bin/shell-for
geordi-0.12.4 bin/shell-for
geordi-0.12.3 bin/shell-for
geordi-0.12.2 bin/shell-for
geordi-0.12.1 bin/shell-for
geordi-0.12.0 bin/shell-for