Sha256: b28de6b3a780e01ec05441c66c6ab30dcdc47529bdb0357e7cfc4a3dd91e0c5e

Contents?: true

Size: 735 Bytes

Versions: 10

Compression:

Stored size: 735 Bytes

Contents

require 'pact_broker/repositories'

module PactBroker

  module Versions
    class Service

      extend PactBroker::Repositories

      def self.find_by_pacticipant_name_and_number params
        version_repository.find_by_pacticipant_name_and_number params.fetch(:pacticipant_name), params.fetch(:pacticipant_version_number)
      end

      def self.find_by_pacticpant_name_and_latest_tag(pacticipant_name, tag)
        version_repository.find_by_pacticpant_name_and_latest_tag(pacticipant_name, tag)
      end

      def self.delete version
        tag_repository.delete_by_version_id version.id
        pact_repository.delete_by_version_id version.id
        version_repository.delete_by_id version.id
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
pact_broker-2.13.1 lib/pact_broker/versions/service.rb
pact_broker-2.13.0 lib/pact_broker/versions/service.rb
pact_broker-2.12.0 lib/pact_broker/versions/service.rb
pact_broker-2.11.0 lib/pact_broker/versions/service.rb
pact_broker-2.10.0 lib/pact_broker/versions/service.rb
pact_broker-2.9.0 lib/pact_broker/versions/service.rb
pact_broker-2.9.0.beta.5 lib/pact_broker/versions/service.rb
pact_broker-2.8.0.beta.5 lib/pact_broker/versions/service.rb
pact_broker-2.8.0.beta.4 lib/pact_broker/versions/service.rb
pact_broker-2.7.0.beta.3 lib/pact_broker/versions/service.rb