Sha256: 0d40db7c5a8147cfbbed5f9684ae89760b96fd8c83d48cc1738e2cbbcb2356b0
Contents?: true
Size: 947 Bytes
Versions: 3
Compression:
Stored size: 947 Bytes
Contents
# frozen_string_literal: true # tau ship container update module ShipContainerUpdate # Update takelship image. def ship_container_update return false unless docker_check_daemon 'cmd_ship_docker' 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
takeltau-0.43.16 | lib/takeltau/ship/container/update.rb |
takeltau-0.43.15 | lib/takeltau/ship/container/update.rb |
takeltau-0.43.14 | lib/takeltau/ship/container/update.rb |