Sha256: cc2b4e758c0daa61400096bf4f22629a4f2b070fc53497df61e634d27d91764d

Contents?: true

Size: 579 Bytes

Versions: 4

Compression:

Stored size: 579 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
  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

4 entries across 4 versions & 1 rubygems

Version Path
takeltau-0.44.2 lib/takeltau/ship/container/stop.rb
takeltau-0.43.23 lib/takeltau/ship/container/stop.rb
takeltau-0.43.21 lib/takeltau/ship/container/stop.rb
takeltau-0.43.19 lib/takeltau/ship/container/stop.rb