Sha256: 711227690db94684bf8356fb31e469ceabc61cd01a84761498546872cb02f8e6

Contents?: true

Size: 884 Bytes

Versions: 48

Compression:

Stored size: 884 Bytes

Contents

# frozen_string_literal: true

# tau ship container update
module ShipContainerUpdate
  # Update takelship image.
  def ship_container_update
    cmd_docker_pull = _ship_container_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 _ship_container_update_cmd_docker_pull
    ship_user = config.active['ship_user']
    ship_repo = config.active['ship_repo']
    ship_tag = config.active['ship_tag']
    format(
      config.active['cmd_docker_image_update_docker_pull'],
      docker: config.active['cmd_docker'],
      docker_user: ship_user,
      docker_repo: ship_repo,
      docker_tag: ship_tag
    )
  end
end

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
takeltau-0.44.14 lib/takeltau/ship/container/update.rb
takeltau-0.44.12 lib/takeltau/ship/container/update.rb
takeltau-0.44.11 lib/takeltau/ship/container/update.rb
takeltau-0.44.8 lib/takeltau/ship/container/update.rb
takeltau-0.44.2 lib/takeltau/ship/container/update.rb
takeltau-0.43.23 lib/takeltau/ship/container/update.rb
takeltau-0.43.21 lib/takeltau/ship/container/update.rb
takeltau-0.43.19 lib/takeltau/ship/container/update.rb