Sha256: 65657241bb71ff873bad8630d6eed1b13497c5fca4a54423661044f1a9d9df69

Contents?: true

Size: 687 Bytes

Versions: 1

Compression:

Stored size: 687 Bytes

Contents

require "pact_broker/api/resources/provider_pacts"
require "pact_broker/configuration"
require "pact_broker/api/decorators/provider_pacts_decorator"

module PactBroker
  module Api
    module Resources
      class LatestProviderPacts < ProviderPacts
        private

        def pacts
          pact_service.find_latest_pact_versions_for_provider provider_name, tag: identifier_from_path[:tag]
        end

        def resource_title
          suffix = identifier_from_path[:tag] ? " with consumer version tag '#{identifier_from_path[:tag]}'" : ""
          "Latest pact versions for the provider #{identifier_from_path[:provider_name]}#{suffix}"
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pact_broker-2.80.0 lib/pact_broker/api/resources/latest_provider_pacts.rb