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, adapter, options = {}) ⇒ RunPreflight
constructor
A new instance of RunPreflight.
- #perform ⇒ Object
Constructor Details
#initialize(directory, logger, adapter, options = {}) ⇒ RunPreflight
Returns a new instance of RunPreflight.
22 23 24 25 26 27 28 29 |
# File 'lib/openstudio/workflow/jobs/run_preflight/run_preflight.rb', line 22 def initialize(directory, logger, adapter, = {}) defaults = {} @options = defaults.merge() @directory = directory @adapter = adapter @results = {} @logger = logger end |
Instance Method Details
#perform ⇒ Object
31 32 33 34 35 36 37 38 39 40 |
# File 'lib/openstudio/workflow/jobs/run_preflight/run_preflight.rb', line 31 def perform @logger.info "Calling #{__method__} in the #{self.class} class" @adapter.communicate_started @directory, @options # Add the moment this does nothing. # return the results back to the caller--always @results end |