Sha256: 004d83daedb06dd82c7294cf4f9d39c73129767160f92cfcdd1183c48bb6fb2e

Contents?: true

Size: 734 Bytes

Versions: 21

Compression:

Stored size: 734 Bytes

Contents

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

Selecting the server: `geordi shell staging -s` shows a menu with all available
servers. When passed a number, directly connects to the selected server.
LONGDESC

# This option is duplicated in console.rb
option :select_server, type: :string, aliases: '-s', banner: '[SERVER_NUMBER]',
  desc: 'Select a server to connect to'

# 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'

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

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
geordi-9.5.1 lib/geordi/commands/shell.rb
geordi-9.5.0 lib/geordi/commands/shell.rb
geordi-9.4.1 lib/geordi/commands/shell.rb
geordi-9.4.0 lib/geordi/commands/shell.rb
geordi-9.3.1 lib/geordi/commands/shell.rb
geordi-9.3.0 lib/geordi/commands/shell.rb
geordi-9.2.0 lib/geordi/commands/shell.rb
geordi-9.1.0 lib/geordi/commands/shell.rb
geordi-9.0.0 lib/geordi/commands/shell.rb
geordi-8.0.0 lib/geordi/commands/shell.rb
geordi-7.0.2 lib/geordi/commands/shell.rb
geordi-7.0.1 lib/geordi/commands/shell.rb
geordi-7.0.0 lib/geordi/commands/shell.rb
geordi-6.1.0 lib/geordi/commands/shell.rb
geordi-6.0.1 lib/geordi/commands/shell.rb
geordi-6.0.0 lib/geordi/commands/shell.rb
geordi-6.0.0.pre.rc1 lib/geordi/commands/shell.rb
geordi-5.4.0 lib/geordi/commands/shell.rb
geordi-5.3.0 lib/geordi/commands/shell.rb
geordi-5.2.4 lib/geordi/commands/shell.rb