Sha256: 17641c89d2c2dc50059aaf51d53f14afd0367e3d6afa14ee9c7a31aa93f1385a

Contents?: true

Size: 965 Bytes

Versions: 10

Compression:

Stored size: 965 Bytes

Contents

require "pact_broker/configuration"
require "pact_broker/services"
require "pact_broker/webhooks/execution_configuration"

module PactBroker
  module Webhooks
    class ExecutionConfigurationCreator
      extend PactBroker::Services

      def self.call(resource)
        PactBroker::Webhooks::ExecutionConfiguration.new
          .with_show_response(PactBroker.configuration.show_webhook_response?)
          .with_redact_sensitive_data(PactBroker.configuration.webhook_redact_sensitive_data)
          .with_retry_schedule(PactBroker.configuration.webhook_retry_schedule)
          .with_http_success_codes(PactBroker.configuration.webhook_http_code_success)
          .with_user_agent(PactBroker.configuration.user_agent)
          .with_disable_ssl_verification(PactBroker.configuration.disable_ssl_verification)
          .with_cert_store(certificate_service.cert_store)
          .with_webhook_context(base_url: resource.base_url)
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
pact_broker-2.112.0 lib/pact_broker/webhooks/execution_configuration_creator.rb
pact_broker-2.111.0 lib/pact_broker/webhooks/execution_configuration_creator.rb
pact_broker-2.109.1 lib/pact_broker/webhooks/execution_configuration_creator.rb
pact_broker-2.109.0 lib/pact_broker/webhooks/execution_configuration_creator.rb
pact_broker-2.108.0 lib/pact_broker/webhooks/execution_configuration_creator.rb
pact_broker-2.107.1 lib/pact_broker/webhooks/execution_configuration_creator.rb
pact_broker-2.107.0 lib/pact_broker/webhooks/execution_configuration_creator.rb
pact_broker-2.107.0.beta.1 lib/pact_broker/webhooks/execution_configuration_creator.rb
pact_broker-2.106.0 lib/pact_broker/webhooks/execution_configuration_creator.rb
pact_broker-2.105.0 lib/pact_broker/webhooks/execution_configuration_creator.rb