lib/paraduct/runner.rb in paraduct-0.0.1.beta4 vs lib/paraduct/runner.rb in paraduct-0.0.1.beta5

- old
+ new

@@ -20,11 +20,11 @@ Dir.chdir(job_dir) end # run script with params # @return [String] stdout - # @raise [Paraduct::ProcessError] command exited error status + # @raise [Paraduct::Errors::ProcessError] command exited error status def perform variable_string = key_capitalized_params.map{ |key, value| %(export #{key}="#{value}";) }.join(" ") Array.wrap(@script).inject("") do |stdout, command| stdout << run_command("#{variable_string} #{command}") @@ -70,10 +70,10 @@ end private def run_command(command) stdout, stderr, status = Open3.capture3(command) - raise Paraduct::ProcessError.new("#{stdout}\n#{stderr}", status) unless status.success? + raise Paraduct::Errors::ProcessError.new("#{stdout}\n#{stderr}", status) unless status.success? stdout end end end