Method: Command::CommandBase.execute!

Defined in:
lib/commandbase.rb

.execute!(argv) ⇒ Object

普通にコマンドを実行するけど、exit(2) を補足してexitstatus を返す正常終了なら0



85
86
87
88
89
90
91
# File 'lib/commandbase.rb', line 85

def self.execute!(argv)
  self.new.execute(argv)
rescue SystemExit => e
  e.status
else
  0
end