Class: Sneaql::Core::StepMetadataManager
- Inherits:
-
Object
- Object
- Sneaql::Core::StepMetadataManager
- Defined in:
- lib/sneaql_lib/base.rb
Overview
abstracted to allow this metadata to come from any source
Direct Known Subclasses
Instance Attribute Summary collapse
- #steps ⇒ Object readonly
Instance Method Summary collapse
-
#initialize(params, logger = nil) ⇒ StepMetadataManager
constructor
A new instance of StepMetadataManager.
-
#manage_steps ⇒ Object
override with a method that will override steps with an array of steps in the format :step_number, :step_file.
Constructor Details
#initialize(params, logger = nil) ⇒ StepMetadataManager
Returns a new instance of StepMetadataManager.
260 261 262 263 264 265 266 267 268 |
# File 'lib/sneaql_lib/base.rb', line 260 def initialize(params, logger = nil) @logger = logger ? logger : Logger.new(STDOUT) @params = params manage_steps rescue => e @logger.error(e.) e.backtrace { |r| @logger.error(r) } raise e end |
Instance Attribute Details
Instance Method Details
#manage_steps ⇒ Object
override with a method that will override steps with an array of steps in the format :step_number, :step_file
272 273 274 |
# File 'lib/sneaql_lib/base.rb', line 272 def manage_steps nil end |