Method: Daengine.execute

Defined in:
lib/daengine.rb

.execute(config_options) ⇒ Object



64
65
66
67
68
69
70
71
72
73
74
# File 'lib/daengine.rb', line 64

def self.execute(config_options)
  self.configure(config_options)
  self.set_logger(config[:logfile_location])
  self.log("Daengine: ### Loading application config ###", "info")
  config_options.each { |key, value| self.log("CONFIG #{key}\t#{value}", "info")}
  begin
    DigitalAssetProcessor.process_tuple_directory  # start the thread daemon
  rescue Exception => e
    self.log(e.message, "error")
  end
end