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.40.4 lib/takeltau/docker/image/tag/latest.rb
takeltau-0.40.3 lib/takeltau/docker/image/tag/latest.rb
takeltau-0.40.1 lib/takeltau/docker/image/tag/latest.rb
takeltau-0.40.0 lib/takeltau/docker/image/tag/latest.rb
takeltau-0.39.18 lib/takeltau/docker/image/tag/latest.rb
takeltau-0.39.16 lib/takeltau/docker/image/tag/latest.rb
takeltau-0.39.11 lib/takeltau/docker/image/tag/latest.rb
takeltau-0.39.7 lib/takeltau/docker/image/tag/latest.rb
takeltau-0.39.2 lib/takeltau/docker/image/tag/latest.rb
takeltau-0.39.0 lib/takeltau/docker/image/tag/latest.rb
takeltau-0.38.2 lib/takeltau/docker/image/tag/latest.rb
takeltau-0.38.1 lib/takeltau/docker/image/tag/latest.rb
takeltau-0.38.0 lib/takeltau/docker/image/tag/latest.rb
takeltau-0.37.3 lib/takeltau/docker/image/tag/latest.rb
takeltau-0.37.1 lib/takeltau/docker/image/tag/latest.rb
takeltau-0.36.5 lib/takeltau/docker/image/tag/latest.rb
takeltau-0.36.4 lib/takeltau/docker/image/tag/latest.rb
takeltau-0.36.3 lib/takeltau/docker/image/tag/latest.rb
takeltau-0.36.1 lib/takeltau/docker/image/tag/latest.rb
takeltau-0.35.18 lib/takeltau/docker/image/tag/latest.rb