Sha256: 9084040d86f7286401e2e1f1c7bb978112e22caed3caa4f866ff7f9f3d64d322

Contents?: true

Size: 913 Bytes

Versions: 19

Compression:

Stored size: 913 Bytes

Contents

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

    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 delay(*args)
      pass(*args)
    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

    def present
      pass
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
dynflow-0.8.30 lib/dynflow/middleware.rb
dynflow-0.8.29 lib/dynflow/middleware.rb
dynflow-0.8.28 lib/dynflow/middleware.rb
dynflow-0.8.27 lib/dynflow/middleware.rb
dynflow-0.8.26 lib/dynflow/middleware.rb
dynflow-0.8.25 lib/dynflow/middleware.rb
dynflow-0.8.24 lib/dynflow/middleware.rb
dynflow-0.8.23 lib/dynflow/middleware.rb
dynflow-0.8.22 lib/dynflow/middleware.rb
dynflow-0.8.21 lib/dynflow/middleware.rb
dynflow-0.8.20 lib/dynflow/middleware.rb
dynflow-0.8.19 lib/dynflow/middleware.rb
dynflow-0.8.18 lib/dynflow/middleware.rb
dynflow-0.8.17 lib/dynflow/middleware.rb
dynflow-0.8.16 lib/dynflow/middleware.rb
dynflow-0.8.15 lib/dynflow/middleware.rb
dynflow-0.8.14 lib/dynflow/middleware.rb
dynflow-0.8.13 lib/dynflow/middleware.rb
dynflow-0.8.12 lib/dynflow/middleware.rb