Sha256: aeb8513d0410ae9261080f6e03d34806cad72fea5b4806e4757438ef344b84e0
Contents?: true
Size: 619 Bytes
Versions: 27
Compression:
Stored size: 619 Bytes
Contents
require "pact_broker/integrations/integration" module PactBroker module Integrations class Repository def create_for_pact(consumer_id, provider_id) if Integration.where(consumer_id: consumer_id, provider_id: provider_id).empty? Integration.new( consumer_id: consumer_id, provider_id: provider_id, created_at: Sequel.datetime_class.now ).insert_ignore end nil end def delete(consumer_id, provider_id) Integration.where(consumer_id: consumer_id, provider_id: provider_id).delete end end end end
Version data entries
27 entries across 27 versions & 1 rubygems