Sha256: d737b5acc34883bf23ca62ff7a3bf65a2ebbaf4fff92868e262fd76314fbbddf

Contents?: true

Size: 593 Bytes

Versions: 39

Compression:

Stored size: 593 Bytes

Contents

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'

# This method has a triple 'l' because :shell is a Thor reserved word. However,
# it can still be called with `geordi shell` :)
def shelll(target, *args)
  require 'geordi/remote'

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

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
geordi-2.12.3 lib/geordi/commands/shell.rb
geordi-2.12.2 lib/geordi/commands/shell.rb
geordi-2.12.1 lib/geordi/commands/shell.rb
geordi-2.12.0 lib/geordi/commands/shell.rb
geordi-2.11.0 lib/geordi/commands/shell.rb
geordi-2.10.1 lib/geordi/commands/shell.rb
geordi-2.10.0 lib/geordi/commands/shell.rb
geordi-2.9.0 lib/geordi/commands/shell.rb
geordi-2.8.0 lib/geordi/commands/shell.rb
geordi-2.7.0 lib/geordi/commands/shell.rb
geordi-2.6.0 lib/geordi/commands/shell.rb
geordi-2.5.0 lib/geordi/commands/shell.rb
geordi-2.4.0 lib/geordi/commands/shell.rb
geordi-2.3.0 lib/geordi/commands/shell.rb
geordi-2.2.0 lib/geordi/commands/shell.rb
geordi-2.1.0 lib/geordi/commands/shell.rb
geordi-2.0.0 lib/geordi/commands/shell.rb
geordi-1.10.0 lib/geordi/commands/shell.rb
geordi-1.9.1 lib/geordi/commands/shell.rb
geordi-1.9.0 lib/geordi/commands/shell.rb