Method: Cranium::Application#run

Defined in:
lib/cranium/application.rb

#runObject



36
37
38
39
40
41
42
43
44
45
46
47
# File 'lib/cranium/application.rb', line 36

def run
  process_file = validate_file options.cranium_arguments[:load]

  begin
    load process_file
  rescue Exception => ex
    log :error, ex
    raise
  ensure
    apply_hook :after
  end
end