Class: OpsWalrus::OpsCmd
- Inherits:
-
Object
- Object
- OpsWalrus::OpsCmd
- Includes:
- TTY::Option
- Defined in:
- lib/opswalrus/cli2.rb
Instance Method Summary collapse
-
#run(app) ⇒ Object
option :port do arity one_or_more short “-p” long “–publish list” convert :list desc “Publish a container’s port(s) to the host” end.
Instance Method Details
#run(app) ⇒ Object
option :port do
arity one_or_more
short "-p"
long "--publish list"
convert :list
desc "Publish a container's port(s) to the host"
end
97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 |
# File 'lib/opswalrus/cli2.rb', line 97 def run(app) if params[:help] print help elsif params.errors.any? puts params.errors.summary else pp params.to_h end 11 rescue => e app.fatal "catchall exception handler:" app.fatal exception.class app.fatal exception. app.fatal exception.backtrace.join("\n") 1 end |