Sha256: 8cfdf5bf648a3e552c9c4da6dd0e7c3e25976af23cd68abb6968ddfeaa9e91d0

Contents?: true

Size: 558 Bytes

Versions: 44

Compression:

Stored size: 558 Bytes

Contents

# frozen_string_literal: true

# tau 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

44 entries across 44 versions & 1 rubygems

Version Path
takeltau-0.43.16 lib/takeltau/docker/image/tag/latest.rb
takeltau-0.43.15 lib/takeltau/docker/image/tag/latest.rb
takeltau-0.43.14 lib/takeltau/docker/image/tag/latest.rb
takeltau-0.43.10 lib/takeltau/docker/image/tag/latest.rb
takeltau-0.43.6 lib/takeltau/docker/image/tag/latest.rb
takeltau-0.43.4 lib/takeltau/docker/image/tag/latest.rb
takeltau-0.43.2 lib/takeltau/docker/image/tag/latest.rb
takeltau-0.43.1 lib/takeltau/docker/image/tag/latest.rb
takeltau-0.42.7 lib/takeltau/docker/image/tag/latest.rb
takeltau-0.42.5 lib/takeltau/docker/image/tag/latest.rb
takeltau-0.42.4 lib/takeltau/docker/image/tag/latest.rb
takeltau-0.42.3 lib/takeltau/docker/image/tag/latest.rb
takeltau-0.42.0 lib/takeltau/docker/image/tag/latest.rb
takeltau-0.41.10 lib/takeltau/docker/image/tag/latest.rb
takeltau-0.41.9 lib/takeltau/docker/image/tag/latest.rb
takeltau-0.41.0 lib/takeltau/docker/image/tag/latest.rb
takeltau-0.40.11 lib/takeltau/docker/image/tag/latest.rb
takeltau-0.40.9 lib/takeltau/docker/image/tag/latest.rb
takeltau-0.40.7 lib/takeltau/docker/image/tag/latest.rb
takeltau-0.40.6 lib/takeltau/docker/image/tag/latest.rb