Method: CodeRunner::Run#info_file
- Defined in:
- lib/coderunner/run.rb
#info_file ⇒ Object
private :write_info
751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 |
# File 'lib/coderunner/run.rb', line 751 def info_file @modlet = rcp.modlet if rcp.modlet? return <<EOF # <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< # #{rcp.code_long} Input Parameters # >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> # Code: #{rcp.code} # System: #{@sys} # Version: #{@version} # Nprocs: #{@nprocs} # Directory: #{Dir.pwd} # Runname: #{@run_name} # ID: #{@id} # #{@modlet ? "Modlet:\t#@modlet" : ""} # Classname: #{self.class.to_s} # #{@job_no ? "Job_No: #{@job_no}" : ""} # Parameters: #{(rcp.variables + rcp.run_info + [:version, :code, :modlet, :sys] - [:component_runs]).inject({}){|hash, var| hash[var] = send(var) unless (!send(var) and send(var) == nil); hash}.pretty_inspect} # Actual Command: # #{run_command.gsub(/\n/, "\n#")} # <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< EOF end |