Class: PactBroker::Integrations::EventListener

Inherits:
Object
  • Object
show all
Includes:
Services
Defined in:
lib/pact_broker/integrations/event_listener.rb

Constant Summary

Constants included from Services

Services::SERVICE_FACTORIES

Instance Method Summary collapse

Methods included from Services

#badge_service, #branch_service, #certificate_service, #contract_service, #deployed_version_service, #environment_service, #get_service, #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

Instance Method Details

#contract_published(params) ⇒ Object

Parameters:

  • params (Hash)

    the params from the broadcast event

Options Hash (params):



12
13
14
# 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) ⇒ Object

Parameters:

  • params (Hash)

    the params from the broadcast event

Options Hash (params):



18
19
20
# 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