lib/coderunner/run.rb in coderunner-0.14.2 vs lib/coderunner/run.rb in coderunner-0.14.3
- old
+ new
@@ -663,9 +663,13 @@
def generate_run_name
@run_name = %[v#@version] + @naming_pars.inject("") do |str, par|
str+="_#{par}_#{send(par).to_s[0...8]}"
end
+ #FVW: special case for preamble which is not an input paramter and for which 'send' does not work
+ if @naming_pars.include?:preamble
+ @run_name += "_preamble_#{@runner.run_list[@restart_id].preamble.to_s[0...8]}"
+ end
@run_name = @run_name.gsub(/\s+/, "_").gsub(/\//, '') + "_id_#@id"
end
def write_info
Dir.chdir(@directory){File.open("code_runner_info.rb", 'w'){|file| file.puts info_file}}