Module: BioDSL::HistoryHelper

Included in:
Pipeline
Defined in:
lib/BioDSL/helpers/history_helper.rb

Overview

Namespace for HistoryHelper.

Instance Method Summary collapse

Instance Method Details

#save_historyObject

Save pipeline to history file unless test is set.



32
33
34
35
36
37
38
# File 'lib/BioDSL/helpers/history_helper.rb', line 32

def save_history
  return if BioDSL.test

  File.open(BioDSL::Config::HISTORY_FILE, 'a') do |ios|
    ios.puts to_s
  end
end