class PactBroker::Integrations::EventListener

Public Instance Methods

contract_published(params) click to toggle source

@param [Hash] params the params from the broadcast event @option params [PactBroker::Domain::Pact] :pact the newly published pact

# File lib/pact_broker/integrations/event_listener.rb, line 12
def contract_published(params)
  integration_service.handle_contract_data_published(params.fetch(:pact).consumer, params.fetch(:pact).provider)
end
provider_verification_published(params) click to toggle source

@param [Hash] params the params from the broadcast event @option params [PactBroker::Domain::Verification] :verification the newly published verification

# File lib/pact_broker/integrations/event_listener.rb, line 18
def provider_verification_published(params)
  integration_service.handle_contract_data_published(params.fetch(:verification).consumer, params.fetch(:verification).provider)
end