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.45.13 lib/takeltau/ship/container/stop.rb
takeltau-0.45.12 lib/takeltau/ship/container/stop.rb
takeltau-0.45.11 lib/takeltau/ship/container/stop.rb
takeltau-0.45.10 lib/takeltau/ship/container/stop.rb
takeltau-0.45.9 lib/takeltau/ship/container/stop.rb
takeltau-0.45.8 lib/takeltau/ship/container/stop.rb
takeltau-0.45.6 lib/takeltau/ship/container/stop.rb
takeltau-0.45.5 lib/takeltau/ship/container/stop.rb
takeltau-0.45.4 lib/takeltau/ship/container/stop.rb
takeltau-0.45.3 lib/takeltau/ship/container/stop.rb
takeltau-0.45.2 lib/takeltau/ship/container/stop.rb
takeltau-0.45.0 lib/takeltau/ship/container/stop.rb
takeltau-0.44.42 lib/takeltau/ship/container/stop.rb
takeltau-0.44.41 lib/takeltau/ship/container/stop.rb
takeltau-0.44.39 lib/takeltau/ship/container/stop.rb
takeltau-0.44.37 lib/takeltau/ship/container/stop.rb
takeltau-0.44.36 lib/takeltau/ship/container/stop.rb
takeltau-0.44.35 lib/takeltau/ship/container/stop.rb
takeltau-0.44.29 lib/takeltau/ship/container/stop.rb
takeltau-0.44.27 lib/takeltau/ship/container/stop.rb