Sha256: b358590c3d91f8abdc87be45bc77107e73f8fc402818a5fed9be2fbc09ce0848

Contents?: true

Size: 388 Bytes

Versions: 7

Compression:

Stored size: 388 Bytes

Contents

module Ixtlan
  module Core
    class ConfigurationRack
      def initialize(app, config_manager)
        @app = app
        @manager = config_manager
      end
      
      def call(env)
        # configure all registered components with current config
        @manager.configure
        result = @app.call(env)
        @manager.cleanup
        result
      end
      
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ixtlan-core-0.8.0 lib/ixtlan/core/configuration_rack.rb
ixtlan-core-0.7.5 lib/ixtlan/core/configuration_rack.rb
ixtlan-core-0.7.4 lib/ixtlan/core/configuration_rack.rb
ixtlan-core-0.7.3 lib/ixtlan/core/configuration_rack.rb
ixtlan-core-0.7.2 lib/ixtlan/core/configuration_rack.rb
ixtlan-core-0.7.1 lib/ixtlan/core/configuration_rack.rb
ixtlan-core-0.7.0 lib/ixtlan/core/configuration_rack.rb