Sha256: ace753f0ad3ddc4c168ae95adea91f81261bd851e79f981ea024f79e9be0388c
Contents?: true
Size: 1.07 KB
Versions: 20
Compression:
Stored size: 1.07 KB
Contents
require "pact_broker/api/resources/matrix" require "pact_broker/matrix/can_i_deploy_query_schema" require "pact_broker/matrix/parse_can_i_deploy_query" module PactBroker module Api module Resources class CanIDeployPacticipantVersion < Matrix def resource_exists? !!version end def policy_name :'matrix::can_i_deploy' end private def selectors @selectors ||= begin [ PactBroker::Matrix::UnresolvedSelector.new( pacticipant_name: pacticipant_name, latest: true, tag: identifier_from_path[:tag] ) ] end end def options @options ||= { latestby: "cvp", latest: true, tag: identifier_from_path[:to] } end def version @version ||= version_service.find_by_pacticipant_name_and_latest_tag(identifier_from_path[:pacticipant_name], identifier_from_path[:tag]) end end end end end
Version data entries
20 entries across 20 versions & 1 rubygems