Sha256: 38cf5b07e32505f744fa292fea0510165991b74504503ab61802a94d3fc4d3ea

Contents?: true

Size: 727 Bytes

Versions: 36

Compression:

Stored size: 727 Bytes

Contents

# frozen_string_literal: true

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

    cmd_docker_pull_latest = _docker_image_update_cmd_docker_pull_latest

    cmd_docker_remove_dangling =
      config.active['cmd_docker_image_update_docker_remove_dangling']

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

  private

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

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
takelage-0.33.1 lib/takelage/docker/image/update.rb
takelage-0.32.4 lib/takelage/docker/image/update.rb
takelage-0.32.3 lib/takelage/docker/image/update.rb
takelage-0.32.1 lib/takelage/docker/image/update.rb
takelage-0.32.0 lib/takelage/docker/image/update.rb
takelage-0.31.0 lib/takelage/docker/image/update.rb
takelage-0.30.6 lib/takelage/docker/image/update.rb
takelage-0.30.5 lib/takelage/docker/image/update.rb
takelage-0.30.1 lib/takelage/docker/image/update.rb
takelage-0.30.0 lib/takelage/docker/image/update.rb
takelage-0.29.14 lib/takelage/docker/image/update.rb
takelage-0.29.13 lib/takelage/docker/image/update.rb
takelage-0.29.11 lib/takelage/docker/image/update.rb
takelage-0.29.10 lib/takelage/docker/image/update.rb
takelage-0.29.8 lib/takelage/docker/image/update.rb
takelage-0.29.6 lib/takelage/docker/image/update.rb
takelage-0.29.0 lib/takelage/docker/image/update.rb
takelage-0.28.26 lib/takelage/docker/image/update.rb
takelage-0.28.24 lib/takelage/docker/image/update.rb
takelage-0.28.14 lib/takelage/docker/image/update.rb