Sha256: e9c0579bbc311df099905726e8c5270cd1d5f2ec7af65c5b0d4fd67ff56dbd8b

Contents?: true

Size: 594 Bytes

Versions: 13

Compression:

Stored size: 594 Bytes

Contents

# This method has a triple 'l' because :shell is a Thor reserved word. However,
# it can still be called with `geordi shell` :)

desc 'shell TARGET', 'Open a shell on a Capistrano deploy target'
long_desc <<-LONGDESC
Example: `geordi shell production`

Lets you select the server to connect to when called with `--select-server`:

    geordi shell production -s
LONGDESC

option :select_server, :default => false, :type => :boolean, :aliases => '-s'

def shelll(target, *args)
  require 'geordi/remote'

  announce 'Opening a shell on ' + target
  Geordi::Remote.new(target).shell(options)
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
geordi-1.2.3 lib/geordi/commands/shell.rb
geordi-1.2.2 lib/geordi/commands/shell.rb
geordi-1.2.1 lib/geordi/commands/shell.rb
geordi-1.2.0 lib/geordi/commands/shell.rb
geordi-1.1.4 lib/geordi/commands/shell.rb
geordi-1.1.3 lib/geordi/commands/shell.rb
geordi-1.1.2 lib/geordi/commands/shell.rb
geordi-1.1.1 lib/geordi/commands/shell.rb
geordi-1.1.0 lib/geordi/commands/shell.rb
geordi-1.0.3 lib/geordi/commands/shell.rb
geordi-1.0.2 lib/geordi/commands/shell.rb
geordi-1.0.1 lib/geordi/commands/shell.rb
geordi-1.0.0 lib/geordi/commands/shell.rb