Method: Command::CommandBase.execute!

Defined in:
lib/commandbase.rb

.execute!(argv) ⇒ Object

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



99
100
101
102
103
104
105
# File 'lib/commandbase.rb', line 99

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