Method: Pechkin.run

Defined in:
lib/pechkin.rb

.runObject



29
30
31
32
33
34
35
36
37
# File 'lib/pechkin.rb', line 29

def run
  options = CLI.parse(ARGV)
  cmd = Command::Dispatcher.new(options).dispatch
  cmd.execute
rescue StandardError => e
  warn "Error: #{e.message}"
  warn "\t#{e.backtrace.reverse.join("\n\t")}" if options.debug?
  exit 2
end