Sha256: 20a93a200d8273435b0e89346487f246aced8a108b8db665b796b1c964a85fea

Contents?: true

Size: 626 Bytes

Versions: 15

Compression:

Stored size: 626 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_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

15 entries across 15 versions & 1 rubygems

Version Path
takeltau-0.46.9 lib/takeltau/ship/container/stop.rb
takeltau-0.46.8 lib/takeltau/ship/container/stop.rb
takeltau-0.46.5 lib/takeltau/ship/container/stop.rb
takeltau-0.46.1 lib/takeltau/ship/container/stop.rb
takeltau-0.46.0 lib/takeltau/ship/container/stop.rb
takeltau-0.45.27 lib/takeltau/ship/container/stop.rb
takeltau-0.45.26 lib/takeltau/ship/container/stop.rb
takeltau-0.45.24 lib/takeltau/ship/container/stop.rb
takeltau-0.45.23 lib/takeltau/ship/container/stop.rb
takeltau-0.45.22 lib/takeltau/ship/container/stop.rb
takeltau-0.45.21 lib/takeltau/ship/container/stop.rb
takeltau-0.45.19 lib/takeltau/ship/container/stop.rb
takeltau-0.45.17 lib/takeltau/ship/container/stop.rb
takeltau-0.45.16 lib/takeltau/ship/container/stop.rb
takeltau-0.45.14 lib/takeltau/ship/container/stop.rb