Sha256: 55b8b5554d0a33ff6d4bdf06572339db306cd256d382a94d7b543872e09d9f62

Contents?: true

Size: 513 Bytes

Versions: 48

Compression:

Stored size: 513 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'

    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

48 entries across 48 versions & 1 rubygems

Version Path
takeltau-0.46.9 lib/takeltau/docker/image/tag/latest.rb
takeltau-0.46.8 lib/takeltau/docker/image/tag/latest.rb
takeltau-0.46.5 lib/takeltau/docker/image/tag/latest.rb
takeltau-0.46.1 lib/takeltau/docker/image/tag/latest.rb
takeltau-0.46.0 lib/takeltau/docker/image/tag/latest.rb
takeltau-0.45.27 lib/takeltau/docker/image/tag/latest.rb
takeltau-0.45.26 lib/takeltau/docker/image/tag/latest.rb
takeltau-0.45.24 lib/takeltau/docker/image/tag/latest.rb
takeltau-0.45.23 lib/takeltau/docker/image/tag/latest.rb
takeltau-0.45.22 lib/takeltau/docker/image/tag/latest.rb
takeltau-0.45.21 lib/takeltau/docker/image/tag/latest.rb
takeltau-0.45.19 lib/takeltau/docker/image/tag/latest.rb
takeltau-0.45.17 lib/takeltau/docker/image/tag/latest.rb
takeltau-0.45.16 lib/takeltau/docker/image/tag/latest.rb
takeltau-0.45.14 lib/takeltau/docker/image/tag/latest.rb
takeltau-0.45.13 lib/takeltau/docker/image/tag/latest.rb
takeltau-0.45.12 lib/takeltau/docker/image/tag/latest.rb
takeltau-0.45.11 lib/takeltau/docker/image/tag/latest.rb
takeltau-0.45.10 lib/takeltau/docker/image/tag/latest.rb
takeltau-0.45.9 lib/takeltau/docker/image/tag/latest.rb