class PactBroker::Api::Resources::CanIDeployPacticipantVersionByTagToTagBadge

Public Instance Methods

badge_url() click to toggle source
# File lib/pact_broker/api/resources/can_i_deploy_pacticipant_version_by_tag_to_tag_badge.rb, line 10
def badge_url
  if pacticipant
    if version
      badge_service.can_i_deploy_badge_url(identifier_from_path[:tag], identifier_from_path[:to], label, results.deployable?)
    else
      badge_service.error_badge_url("version", "not found")
    end
  else
    badge_service.error_badge_url("pacticipant", "not found")
  end
end