lib/helper-run-class.rb in canzea-0.1.102 vs lib/helper-run-class.rb in canzea-0.1.103

- old
+ new

@@ -4,13 +4,14 @@ require "prepare-environment" require "trace-runner" class HelperRun - def initialize () + def initialize (_raw) @basePath = "#{Pathname.new(Canzea::config[:catalog_location]).realpath}" @log = Logger.new(Canzea::config[:logging_root] + '/plans.log') + @raw = _raw end def runPlan (plans) plans.each { | plan | puts "Running #{plan[:action]}" @@ -32,19 +33,19 @@ type = "ruby" parameters = self.enrich(parameters) - envPush = PrepareEnvironment.new + envPush = PrepareEnvironment.new @raw begin envScript = "#{@basePath}/helpers/#{solution}/environment.json" if File.exist?(envScript) @log.info("Adding environment variables...") envPush.addToEnv "#{envScript}" end - r = RunnerWorker.new + r = RunnerWorker.new @raw ENV['CATALOG_LOCATION'] = "#{@basePath}"; ENV['ES_SOLUTION'] = solution; ENV['ES_ACTION'] = action;