lib/paraduct/runner.rb in paraduct-0.0.1 vs lib/paraduct/runner.rb in paraduct-0.0.2

- old
+ new

@@ -23,10 +23,10 @@ # run script with params # @return [String] stdout # @raise [Paraduct::Errors::ProcessError] command exited error status def perform - export_variables = key_capitalized_params.merge("JOB_ID" => @job_id, "JOB_NAME" => job_name) + export_variables = key_capitalized_params.merge("PARADUCT_JOB_ID" => @job_id, "PARADUCT_JOB_NAME" => job_name) variable_string = export_variables.map{ |key, value| %(export #{key}="#{value}";) }.join(" ") Array.wrap(@script).inject("") do |stdout, command| stdout << run_command("#{variable_string} #{command}") stdout