Module: StepperMotor

Defined in:
lib/stepper_motor/journey.rb,
lib/stepper_motor.rb,
lib/stepper_motor/railtie.rb,
lib/stepper_motor/version.rb,
lib/stepper_motor/conditional.rb,
lib/generators/install_generator.rb

Overview

StepperMotor is a module for building multi-step flows where steps are sequential and only ever progress forward. The building block of StepperMotor is StepperMotor::Journey

Defined Under Namespace

Modules: TestHelper Classes: BaseJob, Conditional, CyclicScheduler, DeleteCompletedJourneysJob, Error, ForwardScheduler, HousekeepingJob, InstallGenerator, Journey, JourneyNotPersisted, PerformStepJob, Railtie, RecoverStuckJourneysJob, Step, StepConfigurationError

Constant Summary collapse

VERSION =
"0.1.19"
PerformStepJobV2 =

Alias for the previous job name

StepperMotor::PerformStepJob
RecoverStuckJourneysJobV1 =

Alias for the previous job name

StepperMotor::RecoverStuckJourneysJob

Class Method Summary collapse

Class Method Details

.extend_base_job(&blk) ⇒ Object

Extends the BaseJob of the library with any additional options



35
36
37
38
39
# File 'lib/stepper_motor.rb', line 35

def self.extend_base_job(&blk)
  ActiveSupport::Reloader.to_prepare do
    BaseJob.class_eval(&blk)
  end
end