Sha256: c30ea4aff7c14d71f2c6bdab9d65378cf0bbf6bf4b59e8f90cbc74de45c5f266

Contents?: true

Size: 409 Bytes

Versions: 81

Compression:

Stored size: 409 Bytes

Contents

require 'rack'
require 'rack/cascade'

module Pact
  module MockService
    module ControlServer
      class MockServices < Rack::Cascade

        def add app
          mock_services << app
          super
        end

        def shutdown
          mock_services.each(&:shutdown)
        end

        private

        def mock_services
          @mock_services ||= []
        end
      end
    end
  end
end

Version data entries

81 entries across 81 versions & 2 rubygems

Version Path
pact-mock_service-2.6.3 lib/pact/mock_service/control_server/mock_services.rb
pact-mock_service-2.6.2 lib/pact/mock_service/control_server/mock_services.rb
pact-mock_service-2.6.0 lib/pact/mock_service/control_server/mock_services.rb
pact-mock_service-2.5.4 lib/pact/mock_service/control_server/mock_services.rb
pact-mock_service-2.5.3 lib/pact/mock_service/control_server/mock_services.rb
pact-mock_service-2.5.1 lib/pact/mock_service/control_server/mock_services.rb
pact-mock_service-2.4.0 lib/pact/mock_service/control_server/mock_services.rb
pact-mock_service-2.3.0 lib/pact/mock_service/control_server/mock_services.rb
pact-mock_service-2.2.0 lib/pact/mock_service/control_server/mock_services.rb
pact-mock_service-2.1.1.pre.alpha.2 lib/pact/mock_service/control_server/mock_services.rb
pact-mock_service-2.1.0 lib/pact/mock_service/control_server/mock_services.rb
pact-mock_service-2.0.1 lib/pact/mock_service/control_server/mock_services.rb
pact-mock_service-2.0.0 lib/pact/mock_service/control_server/mock_services.rb
pact-mock_service-1.2.0 lib/pact/mock_service/control_server/mock_services.rb
pact-mock_service-1.1.0 lib/pact/mock_service/control_server/mock_services.rb
pact-mock_service-1.0.0 lib/pact/mock_service/control_server/mock_services.rb
pact-mock_service-0.12.1 lib/pact/mock_service/control_server/mock_services.rb
pact-mock_service-0.12.0 lib/pact/mock_service/control_server/mock_services.rb
pact-mock_service-0.11.0 lib/pact/mock_service/control_server/mock_services.rb
pact-mock_service-0.10.2 lib/pact/mock_service/control_server/mock_services.rb