Sha256: 606fe51403551e1bd232a480145a53059943677b623b282bac7fae256079d111

Contents?: true

Size: 778 Bytes

Versions: 19

Compression:

Stored size: 778 Bytes

Contents

module Dynflow
  class Middleware
    require 'dynflow/middleware/register'
    require 'dynflow/middleware/world'
    require 'dynflow/middleware/resolver'
    require 'dynflow/middleware/stack'

    include Algebrick::TypeCheck

    def initialize(stack)
      @stack = Type! stack, Stack
    end

    # call `pass` to get deeper with the call
    def pass(*args)
      @stack.pass(*args)
    end

    # to get the action object
    def action
      @stack.action or raise "the action is not available"
    end

    def run(*args)
      pass(*args)
    end

    def plan(*args)
      pass(*args)
    end

    def finalize(*args)
      pass(*args)
    end

    def plan_phase(*args)
      pass(*args)
    end

    def finalize_phase(*args)
      pass(*args)
    end

  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
dynflow-0.8.1 lib/dynflow/middleware.rb
dynflow-0.8.0 lib/dynflow/middleware.rb
dynflow-0.7.9 lib/dynflow/middleware.rb
dynflow-0.7.8 lib/dynflow/middleware.rb
dynflow-0.7.7 lib/dynflow/middleware.rb
dynflow-0.7.6 lib/dynflow/middleware.rb
dynflow-0.7.5 lib/dynflow/middleware.rb
dynflow-0.7.4 lib/dynflow/middleware.rb
dynflow-0.7.3 lib/dynflow/middleware.rb
dynflow-0.7.2 lib/dynflow/middleware.rb
dynflow-0.7.1 lib/dynflow/middleware.rb
dynflow-0.7.0 lib/dynflow/middleware.rb
dynflow-0.6.2 lib/dynflow/middleware.rb
dynflow-0.6.1 lib/dynflow/middleware.rb
dynflow-0.6.0 lib/dynflow/middleware.rb
dynflow-0.5.1 lib/dynflow/middleware.rb
dynflow-0.5.0 lib/dynflow/middleware.rb
dynflow-0.4.1 lib/dynflow/middleware.rb
dynflow-0.4.0 lib/dynflow/middleware.rb