Class: PactBroker::Webhooks::Job

Inherits:
Object
  • Object
show all
Includes:
Logging, SuckerPunch::Job
Defined in:
lib/pact_broker/webhooks/job.rb

Constant Summary collapse

INFO_ERROR_PREFIXES =
%w{Errno:: Timeout:: Net:: OpenSSL:: EOFError SocketError}

Instance Method Summary collapse

Methods included from Logging

included, #log_error, #log_with_tag

Instance Method Details

#perform(data) ⇒ Object



15
16
17
18
19
# File 'lib/pact_broker/webhooks/job.rb', line 15

def perform data
  data.fetch(:database_connector).call do
    perform_with_connection(data)
  end
end