Class: PactBroker::Webhooks::ExecutionConfigurationCreator

Inherits:
Object
  • Object
show all
Extended by:
Services
Defined in:
lib/pact_broker/webhooks/execution_configuration_creator.rb

Constant Summary

Constants included from Services

Services::FACTORIES

Class Method Summary collapse

Methods included from Services

badge_service, branch_service, certificate_service, contract_service, deployed_version_service, environment_service, get, group_service, index_service, integration_service, label_service, matrix_service, metrics_service, pact_service, pacticipant_service, register_default_services, register_service, released_version_service, tag_service, verification_service, version_service, webhook_service, webhook_trigger_service

Class Method Details

.call(resource) ⇒ Object



10
11
12
13
14
15
16
17
18
19
# File 'lib/pact_broker/webhooks/execution_configuration_creator.rb', line 10

def self.call(resource)
  PactBroker::Webhooks::ExecutionConfiguration.new
    .with_show_response(PactBroker.configuration.show_webhook_response?)
    .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