Sha256: bf9ed441e50e3f6a63b7128716ac77e7e1e3556c26b1c3510d8c02a778b80c7d

Contents?: true

Size: 474 Bytes

Versions: 8

Compression:

Stored size: 474 Bytes

Contents

module BusinessFlow
  # Include me to fire ActiveSupport notifications on the flow, every step,
  # and for any errors that happen.
  module Instrument
    def self.included(klass)
      klass.extend(ClassMethods)
      klass.step_executor ::BusinessFlow::InstrumentedExecutor
    end

    # Contains methods that we add to the DSL
    module ClassMethods
      def instrument_steps
        step_executor ::BusinessFlow::InstrumentedStepExecutor
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
business_flow-0.11.1 lib/business_flow/instrument.rb
business_flow-0.11.0 lib/business_flow/instrument.rb
business_flow-0.10.0 lib/business_flow/instrument.rb
business_flow-0.9.1 lib/business_flow/instrument.rb
business_flow-0.9.0 lib/business_flow/instrument.rb
business_flow-0.8.2 lib/business_flow/instrument.rb
business_flow-0.8.1 lib/business_flow/instrument.rb
business_flow-0.8.0 lib/business_flow/instrument.rb