lib/CLIntegracon/subject.rb in clintegracon-0.6.0 vs lib/CLIntegracon/subject.rb in clintegracon-0.6.1

- old
+ new

@@ -137,11 +137,11 @@ # # @return [String] # Serialized assignment of configured environment variables. # def environment_var_assignments - environment_vars.map { |key,value| "#{key}=#{value}" }.join ' ' + environment_vars.keys.sort.map { |key| "#{key}=#{environment_vars[key]}" }.join ' ' end # Run the command. # # @param [String] command_line @@ -194,10 +194,10 @@ # @param [String] output # The output, which was emitted while execution. # def write_output(command, output) File.open(output_path, 'w') do |file| - printable_command = "#{environment_var_assignments} #{command} 2>&1" + printable_command = apply_replacements("#{environment_var_assignments} #{command} 2>&1") file.write printable_command.sub(executable, name) file.write "\n" file.write output end end