Sha256: 52c453688b656f1b2e7dcacf05b477007c83c1d78de84e9e9fe0a15f15cc1935

Contents?: true

Size: 772 Bytes

Versions: 48

Compression:

Stored size: 772 Bytes

Contents

# frozen_string_literal: true

# tau docker image update
module DockerImageUpdate
  # Backend method for docker image update.
  def docker_image_update
    cmd_docker_pull = _docker_image_update_cmd_docker_pull

    cmd_docker_remove_dangling = format(
      config.active['cmd_docker_image_update_docker_remove_dangling'],
      docker: config.active['cmd_docker']
    )

    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: config.active['cmd_docker'],
      docker_user: @docker_user,
      docker_repo: @docker_repo,
      docker_tag: @docker_tag
    )
  end
end

Version data entries

48 entries across 48 versions & 1 rubygems

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