Method: ConfigmonkeyCli::Application::Dispatch#dispatch_index
- Defined in:
- lib/configmonkey_cli/application/dispatch.rb
#dispatch_index ⇒ Object
27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/configmonkey_cli/application/dispatch.rb', line 27 def dispatch_index Thread.abort_on_exception = true trap_signals @running = true load_and_execute_manifest rescue Manifest::ExecutionError => ex error "\nTraceback (most recent call last):" ex.backtrace.reverse.each_with_index {|l, i| error "\t#{"#{ex.backtrace.length - i}:".rjust(4)} #{l}" } error "\n" << "[#{ex.class}] #{ex.message}".strip ensure @running = false release_signals end |