lib/release_tools/deployments/omnibus_deployment_version_parser.rb
# The default ref/branch to use when none can be found for a deployed SHA.
The default ref/branch to use when none can be found for a deployed SHA.
The default ref / branch to use when none can be found for a deployed SHA .
def deployment_from_tag(version)
        return unless version.match?(DeploymentVersionParser::TAG_REGEX)
        tag_name = Version.new(version).to_omnibus(ee: true)
        tag = GitlabClient
          .tag(Project::OmnibusGitlab.canonical_or_security_path, tag: tag_name)
        DeploymentVersion.new(tag.commit.id, tag.name, true)
      rescue Gitlab::Error::Error
        nil
      end
def deployment_from_tag ( version ) return unless version . match? ( DeploymentVersionParser :: TAG_REGEX ) tag_name = Version . new ( version ) . to_omnibus ( ee : true ) tag = GitlabClient . tag ( Project :: OmnibusGitlab . canonical_or_security_path , tag : tag_name ) DeploymentVersion . new ( tag . commit . id , tag . name , true ) rescue Gitlab :: Error :: Error nil end
The default ref/branch to use when none can be found for a deployed SHA.
The default ref / branch to use when none can be found for a deployed SHA .
version