Sha256: baf391e580b029bd94718091a790138130ece34d268a01be25bfe7c8812826f3

Contents?: true

Size: 640 Bytes

Versions: 22

Compression:

Stored size: 640 Bytes

Contents

# frozen_string_literal: true

# tau ship container stop
module ShipContainerStop
  # Stop a takelship container
  def ship_container_stop
    _ship_container_stop_docker_stop
    "Stopped takelship #{_ship_container_lib_ship_hostname}"
  end

  private

  # Run takelship docker stop command
  def _ship_container_stop_docker_stop
    return false unless ship_container_check_existing

    cmd_docker_stop_command = format(
      config.active['cmd_ship_project_start_docker_stop'],
      ship_docker: config.active['cmd_ship_docker'],
      ship_hostname: _ship_container_lib_ship_hostname
    )
    run cmd_docker_stop_command
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
takeltau-0.44.24 lib/takeltau/ship/container/stop.rb
takeltau-0.44.23 lib/takeltau/ship/container/stop.rb