Class: RunPreflight
- Inherits:
-
Object
- Object
- RunPreflight
- Defined in:
- lib/openstudio/workflow/jobs/run_preflight/run_preflight.rb
Overview
Run Prelight job to prepare the directory for simulations.
Instance Method Summary collapse
-
#initialize(directory, logger, time_logger, adapter, options = {}) ⇒ RunPreflight
constructor
A new instance of RunPreflight.
- #perform ⇒ Object
Constructor Details
#initialize(directory, logger, time_logger, adapter, options = {}) ⇒ RunPreflight
Returns a new instance of RunPreflight.
22 23 24 25 26 27 28 29 30 |
# File 'lib/openstudio/workflow/jobs/run_preflight/run_preflight.rb', line 22 def initialize(directory, logger, time_logger, adapter, = {}) defaults = {} @options = defaults.merge() @directory = directory @adapter = adapter @logger = logger @time_logger = time_logger @results = {} end |
Instance Method Details
#perform ⇒ Object
32 33 34 35 36 37 38 39 40 41 |
# File 'lib/openstudio/workflow/jobs/run_preflight/run_preflight.rb', line 32 def perform @logger.info "Calling #{__method__} in the #{self.class} class" @adapter.communicate_started @directory, @options # At the moment this does nothing. # return the results back to the caller -- always @results end |