lib/scout/workflow/task/inputs.rb in scout-gear-10.1.0 vs lib/scout/workflow/task/inputs.rb in scout-gear-10.2.0
- old
+ new
@@ -83,11 +83,15 @@
next unless provided_inputs.include?(name)
value = provided_inputs[name]
input_file = File.join(directory, name.to_s)
if Path.is_filename?(value)
- relative_file = save_file_input(value, directory)
- Open.write(input_file + ".as_file", relative_file)
+ if type == :path
+ Open.write(input_file + ".as_path", value)
+ else
+ relative_file = save_file_input(value, directory)
+ Open.write(input_file + ".as_file", relative_file)
+ end
elsif Step === value
Open.write(input_file + ".as_step", value.short_path)
elsif type == :file
relative_file = save_file_input(value, directory)
Persist.save(relative_file, input_file, :file)