Sha256: 52c25b3dc65334f113409e4dc0385aaa04f461d8c769c90c1ce311b6a3f9f3ee

Contents?: true

Size: 964 Bytes

Versions: 20

Compression:

Stored size: 964 Bytes

Contents

require 'pact_broker/repositories'

module PactBroker

  module Versions
    class Service

      extend PactBroker::Repositories

      def self.find_latest_by_pacticpant_name params
        version_repository.find_latest_by_pacticpant_name params.fetch(:pacticipant_name)
      end

      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_pacticipant_name_and_latest_tag(pacticipant_name, tag)
        version_repository.find_by_pacticipant_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
        verification_repository.delete_by_provider_version_id version.id
        version_repository.delete_by_id version.id
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
pact_broker-2.36.1 lib/pact_broker/versions/service.rb
pact_broker-2.36.0 lib/pact_broker/versions/service.rb
pact_broker-2.35.0 lib/pact_broker/versions/service.rb
pact_broker-2.34.0 lib/pact_broker/versions/service.rb
pact_broker-2.33.0 lib/pact_broker/versions/service.rb
pact_broker-2.32.0 lib/pact_broker/versions/service.rb
pact_broker-2.31.0 lib/pact_broker/versions/service.rb
pact_broker-2.30.0 lib/pact_broker/versions/service.rb
pact_broker-2.29.0 lib/pact_broker/versions/service.rb
pact_broker-2.27.6 lib/pact_broker/versions/service.rb
pact_broker-2.27.5 lib/pact_broker/versions/service.rb
pact_broker-2.27.4 lib/pact_broker/versions/service.rb
pact_broker-2.27.3 lib/pact_broker/versions/service.rb
pact_broker-2.27.2 lib/pact_broker/versions/service.rb
pact_broker-2.27.0 lib/pact_broker/versions/service.rb
pact_broker-2.26.1 lib/pact_broker/versions/service.rb
pact_broker-2.26.0 lib/pact_broker/versions/service.rb
pact_broker-2.25.0 lib/pact_broker/versions/service.rb
pact_broker-2.24.0 lib/pact_broker/versions/service.rb
pact_broker-2.23.4 lib/pact_broker/versions/service.rb