Sha256: 2acb3c712b8d09e54c271d3706f7a1646fb644254b824bf477d18c5c309f8848

Contents?: true

Size: 644 Bytes

Versions: 7

Compression:

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

7 entries across 7 versions & 1 rubygems

Version Path
takeltau-0.44.19 lib/takeltau/ship/container/stop.rb
takeltau-0.44.18 lib/takeltau/ship/container/stop.rb
takeltau-0.44.15 lib/takeltau/ship/container/stop.rb
takeltau-0.44.14 lib/takeltau/ship/container/stop.rb
takeltau-0.44.12 lib/takeltau/ship/container/stop.rb
takeltau-0.44.11 lib/takeltau/ship/container/stop.rb
takeltau-0.44.8 lib/takeltau/ship/container/stop.rb