Sha256: 2723c9b685bb74251812fdbf31c230a297c69c2514c0e40fbce55c7182b5e509
Contents?: true
Size: 563 Bytes
Versions: 6
Compression:
Stored size: 563 Bytes
Contents
# frozen_string_literal: true # takeltau docker image tag latest module DockerImageTagLatest # Backend method for docker image tag latest. # @return [String] latest docker image tag def docker_image_tag_latest log.debug 'Getting latest docker image tag' return false unless docker_check_daemon tags = docker_image_tag_list tag_latest = if tags.include? 'latest' 'latest' else tags[-1] end log.debug "Latest docker tag: #{tag_latest}" tag_latest end end
Version data entries
6 entries across 6 versions & 1 rubygems