Sha256: 69e5fbb1c068b4454722f84654e224bbd63961e3a0c9990e12b85d5b105e4875

Contents?: true

Size: 1.84 KB

Versions: 5

Compression:

Stored size: 1.84 KB

Contents

require "pact_broker/webhooks/execution"
require "pact_broker/webhooks/triggered_webhook"
require "pact_broker/webhooks/webhook"
require "pact_broker/pacts/latest_pact_publication_id_for_consumer_version"
require "pact_broker/verifications/latest_verification_id_for_pact_version_and_provider_version"
require "pact_broker/integrations/integration"
require "pact_broker/pacts/pact_publication"
require "pact_broker/pacts/pact_version"
require "pact_broker/domain/verification"
require "pact_broker/domain/tag"
require "pact_broker/domain/version"
require "pact_broker/domain/label"
require "pact_broker/domain/pacticipant"
require "pact_broker/deployments/environment"
require "pact_broker/deployments/deployed_version"
require "pact_broker/deployments/released_version"
require "pact_broker/versions/branch"
require "pact_broker/versions/branch_version"
require "pact_broker/versions/branch_head"
require "pact_broker/matrix/matrix_row"
require "pact_broker/matrix/every_row"

module PactBroker
  INTEGRATIONS_TABLES = [
    PactBroker::Webhooks::Execution,
    PactBroker::Webhooks::TriggeredWebhook,
    PactBroker::Webhooks::Webhook,
    PactBroker::Pacts::LatestPactPublicationIdForConsumerVersion,
    PactBroker::Verifications::LatestVerificationIdForPactVersionAndProviderVersion,
    PactBroker::Domain::Verification,
    PactBroker::Pacts::PactPublication,
    PactBroker::Pacts::PactVersion,
    PactBroker::Domain::Tag,
    PactBroker::Deployments::DeployedVersion,
    PactBroker::Deployments::ReleasedVersion,
    PactBroker::Versions::BranchHead,
    PactBroker::Versions::BranchVersion,
    PactBroker::Versions::Branch,
    PactBroker::Domain::Version,
    PactBroker::Domain::Label,
    PactBroker::Domain::Pacticipant
  ]

  module DB
    def self.each_integration_model
      INTEGRATIONS_TABLES.each do | model |
        yield model
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
pact_broker-2.112.0 lib/pact_broker/db/models.rb
pact_broker-2.111.0 lib/pact_broker/db/models.rb
pact_broker-2.109.1 lib/pact_broker/db/models.rb
pact_broker-2.109.0 lib/pact_broker/db/models.rb
pact_broker-2.108.0 lib/pact_broker/db/models.rb