Method: LibGems::CommandManager#run

Defined in:
lib/libgems/command_manager.rb

#run(args) ⇒ Object

Run the config specified by args.



103
104
105
106
107
108
109
110
111
112
113
# File 'lib/libgems/command_manager.rb', line 103

def run(args)
  process_args(args)
rescue StandardError, Timeout::Error => ex
  alert_error "While executing gem ... (#{ex.class})\n    #{ex.to_s}"
  ui.errs.puts "\t#{ex.backtrace.join "\n\t"}" if
    LibGems.configuration.backtrace
  terminate_interaction(1)
rescue Interrupt
  alert_error "Interrupted"
  terminate_interaction(1)
end