Sha256: 608f0a8a9f7a3a348d75d2a3b2d0bc15ba15931f4faf13892cd53ebfe2bd2638

Contents?: true

Size: 718 Bytes

Versions: 20

Compression:

Stored size: 718 Bytes

Contents

# frozen_string_literal: true

# tau docker image uppdate
module DockerImageUpdate
  # Backend method for docker image update.
  def docker_image_update
    return false unless docker_check_daemon

    cmd_docker_pull = _docker_image_update_cmd_docker_pull

    cmd_docker_remove_dangling =
      config.active['cmd_docker_image_update_docker_remove_dangling']

    run_and_exit "#{cmd_docker_pull} && #{cmd_docker_remove_dangling}"
  end

  private

  # Prepare dpcker pull latest command.
  def _docker_image_update_cmd_docker_pull
    format(
      config.active['cmd_docker_image_update_docker_pull'],
      docker_user: @docker_user,
      docker_repo: @docker_repo,
      docker_tag: @docker_tag
    )
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
takeltau-0.43.2 lib/takeltau/docker/image/update.rb
takeltau-0.43.1 lib/takeltau/docker/image/update.rb
takeltau-0.42.7 lib/takeltau/docker/image/update.rb
takeltau-0.42.5 lib/takeltau/docker/image/update.rb
takeltau-0.42.4 lib/takeltau/docker/image/update.rb
takeltau-0.42.3 lib/takeltau/docker/image/update.rb
takeltau-0.42.0 lib/takeltau/docker/image/update.rb
takeltau-0.41.10 lib/takeltau/docker/image/update.rb
takeltau-0.41.9 lib/takeltau/docker/image/update.rb
takeltau-0.41.0 lib/takeltau/docker/image/update.rb
takeltau-0.40.11 lib/takeltau/docker/image/update.rb
takeltau-0.40.9 lib/takeltau/docker/image/update.rb
takeltau-0.40.7 lib/takeltau/docker/image/update.rb
takeltau-0.40.6 lib/takeltau/docker/image/update.rb
takeltau-0.40.4 lib/takeltau/docker/image/update.rb
takeltau-0.40.3 lib/takeltau/docker/image/update.rb
takeltau-0.40.1 lib/takeltau/docker/image/update.rb
takeltau-0.40.0 lib/takeltau/docker/image/update.rb
takeltau-0.39.18 lib/takeltau/docker/image/update.rb
takeltau-0.39.16 lib/takeltau/docker/image/update.rb