class DockerRailsProxy::Ssh
Public Instance Methods
process()
click to toggle source
# File lib/docker_rails_proxy/commands/ssh.rb, line 3 def process command, *args = arguments case command when '-h', '--help' opt_parser.parse %w(-h) else execute "#{command} #{args.join(' ')}", tty: true end end
Private Instance Methods
opt_parser()
click to toggle source
# File lib/docker_rails_proxy/commands/ssh.rb, line 16 def opt_parser @opt_parser ||= OptionParser.new do |opts| opts.banner = "Usage: bin/#{APP_NAME} ssh COMMAND [options]" opts.on('-h', '--help', 'Display this screen') do puts opts exit end end end