Class: Most::Executor
Instance Method Summary collapse
-
#initialize ⇒ Executor
constructor
A new instance of Executor.
- #run ⇒ Object
Constructor Details
Instance Method Details
#run ⇒ Object
28 29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/most/executor.rb', line 28 def run() if @tasks[:show_version] output_version() elsif @tasks[:show_help] output_help() else begin output_result(SERVICES[:core].run()) rescue Exception => e @environment.log_error(e, 'Core failure') end end end |