Sha256: feae882c5848ebafe1b589a19a4b9905edfa92b8c4556843d11ea26ecd556920
Contents?: true
Size: 928 Bytes
Versions: 9
Compression:
Stored size: 928 Bytes
Contents
require "pact_broker/services" # Listens for events that happen in the Pact Broker that are relevant to the Integrations objects. module PactBroker module Integrations class EventListener include PactBroker::Services # @param [Hash] params the params from the broadcast event # @option params [PactBroker::Domain::Pact] :pact the newly published pact def contract_published(params) integration_service.handle_contract_data_published(params.fetch(:pact).consumer, params.fetch(:pact).provider) end # @param [Hash] params the params from the broadcast event # @option params [PactBroker::Domain::Verification] :verification the newly published verification def provider_verification_published(params) integration_service.handle_contract_data_published(params.fetch(:verification).consumer, params.fetch(:verification).provider) end end end end
Version data entries
9 entries across 9 versions & 1 rubygems