Class: CopyBot::StepRunner
- Inherits:
-
Object
- Object
- CopyBot::StepRunner
- Defined in:
- lib/copy_bot/step_runner.rb
Instance Method Summary collapse
- #call ⇒ FalseClass, TrueClass
-
#initialize(step_name) ⇒ StepRunner
constructor
A new instance of StepRunner.
Constructor Details
#initialize(step_name) ⇒ StepRunner
Returns a new instance of StepRunner.
4 5 6 |
# File 'lib/copy_bot/step_runner.rb', line 4 def initialize(step_name) @step_name = step_name.to_sym end |
Instance Method Details
#call ⇒ FalseClass, TrueClass
9 10 11 12 13 14 15 16 |
# File 'lib/copy_bot/step_runner.rb', line 9 def call # rubocop:disable Metrics/AbcSize logger.info("Started step: #{step_name}") step.run step.success ? logger.info(step.) : logger.debug(step.) step.success end |