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