lib/daengine.rb in daengine-0.5.10 vs lib/daengine.rb in daengine-0.5.13
- old
+ new
@@ -8,10 +8,11 @@
require 'daengine/teamsite_metadata_parser'
require 'daengine/digital_asset_processor'
require 'daengine/taxonomy_processor'
require 'daengine/content_service_processor'
require 'daengine/taxonomy_parser'
+require 'daengine/digital_asset_extension_processor'
require 'mongoid'
require 'logger'
module Daengine
@logger
@@ -89,9 +90,21 @@
self.set_logger(config[:content_service_logfile_location])
self.log("Daengine: ### Loading application config ###", "info")
config_options.each { |key, value| self.log("CONFIG #{key}\t#{value}", "info")}
begin
ContentServiceProcessor.process_orderable
+ rescue Exception => e
+ self.log(e.message, "error")
+ end
+ end
+
+ def self.execute_digital_asset_extension(config_options)
+ self.configure(config_options)
+ self.set_logger(config[:digital_asset_extension_logfile_location])
+ self.log("Daengine: ### Loading application config ###", "info")
+ config_options.each { |key, value| self.log("CONFIG #{key}\t#{value}", "info")}
+ begin
+ DigitalAssetExtensionProcessor.process_extension_file
rescue Exception => e
self.log(e.message, "error")
end
end