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.45.8 lib/takeltau/docker/image/tag/latest.rb
takeltau-0.45.6 lib/takeltau/docker/image/tag/latest.rb
takeltau-0.45.5 lib/takeltau/docker/image/tag/latest.rb
takeltau-0.45.4 lib/takeltau/docker/image/tag/latest.rb
takeltau-0.45.3 lib/takeltau/docker/image/tag/latest.rb
takeltau-0.45.2 lib/takeltau/docker/image/tag/latest.rb
takeltau-0.45.0 lib/takeltau/docker/image/tag/latest.rb
takeltau-0.44.42 lib/takeltau/docker/image/tag/latest.rb
takeltau-0.44.41 lib/takeltau/docker/image/tag/latest.rb
takeltau-0.44.39 lib/takeltau/docker/image/tag/latest.rb
takeltau-0.44.37 lib/takeltau/docker/image/tag/latest.rb
takeltau-0.44.36 lib/takeltau/docker/image/tag/latest.rb
takeltau-0.44.35 lib/takeltau/docker/image/tag/latest.rb
takeltau-0.44.29 lib/takeltau/docker/image/tag/latest.rb
takeltau-0.44.27 lib/takeltau/docker/image/tag/latest.rb
takeltau-0.44.24 lib/takeltau/docker/image/tag/latest.rb
takeltau-0.44.23 lib/takeltau/docker/image/tag/latest.rb
takeltau-0.44.19 lib/takeltau/docker/image/tag/latest.rb
takeltau-0.44.18 lib/takeltau/docker/image/tag/latest.rb
takeltau-0.44.15 lib/takeltau/docker/image/tag/latest.rb