Sha256: 2f027b927944ea1ea1de21ba9fdd34f442041c64e780709ec460a60c6c770b3a

Contents?: true

Size: 403 Bytes

Versions: 1

Compression:

Stored size: 403 Bytes

Contents

require 'pact/provider/rspec'
require 'rack/reverse_proxy'

module Pact
  module Proxy

    class ConfigureServiceProvider

      def self.call provider_base_url

        Pact.service_provider "Running Provider Application" do
          app do
            Rack::ReverseProxy.new do
              reverse_proxy '/', provider_base_url
            end
          end
        end

      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pact-provider-proxy-0.0.2 lib/pact/provider/proxy/configure_service_provider.rb