Method: Webhookdb::Replicator.find_at_root!

Defined in:
lib/webhookdb/replicator.rb

.find_at_root!(sint, service_name:) ⇒ Webhookdb::ServiceIntegration

Parameters:

Returns:

Raises:

  • (self::CredentialsMissing)


214
215
216
217
218
219
# File 'lib/webhookdb/replicator.rb', line 214

def find_at_root!(sint, service_name:)
  root = self.find_root(sint)
  bad_auth = root&.service_name != service_name
  raise self::CredentialsMissing, "Could not find root integration for #{sint.inspect}" if bad_auth
  return root
end