Sha256: e408af9778f9ff3fce64a7105b4c07f3d9583cf045aa4be9737a5352db14d594

Contents?: true

Size: 423 Bytes

Versions: 9

Compression:

Stored size: 423 Bytes

Contents

require 'pact_broker/configuration'
require 'pact_broker/webhooks/execution_configuration'

module PactBroker
  module Webhooks
    class ExecutionConfigurationCreator
      def self.call(resource)
        PactBroker::Webhooks::ExecutionConfiguration.new
          .with_show_response(PactBroker.configuration.show_webhook_response?)
          .with_webhook_context(base_url: resource.base_url)
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
pact_broker-2.79.1 lib/pact_broker/webhooks/execution_configuration_creator.rb
pact_broker-2.79.0 lib/pact_broker/webhooks/execution_configuration_creator.rb
pact_broker-2.78.1 lib/pact_broker/webhooks/execution_configuration_creator.rb
pact_broker-2.78.0 lib/pact_broker/webhooks/execution_configuration_creator.rb
pact_broker-2.77.0 lib/pact_broker/webhooks/execution_configuration_creator.rb
pact_broker-2.76.2 lib/pact_broker/webhooks/execution_configuration_creator.rb
pact_broker-2.76.1 lib/pact_broker/webhooks/execution_configuration_creator.rb
pact_broker-2.76.0 lib/pact_broker/webhooks/execution_configuration_creator.rb
pact_broker-2.75.0 lib/pact_broker/webhooks/execution_configuration_creator.rb