Sha256: 74fa641ee82ca1ae975e7bc5aea5e1786a08a8dd3dcafc8114c9f5b496346e47

Contents?: true

Size: 723 Bytes

Versions: 40

Compression:

Stored size: 723 Bytes

Contents

# frozen_string_literal: true

# tau ship container logs
module ShipContainerLogs
  # Start a takelship
  def ship_container_logs(args)
    ship_hostname = _ship_container_lib_ship_hostname

    unless ship_container_check_existing
      say "The takelship #{ship_hostname} is not sailing."
      return false
    end

    log.debug 'Printing docker logs'
    _ship_container_logs_print(ship_hostname, args.join(' '))
  end

  private

  def _ship_container_logs_print(ship_hostname, args)
    cmd_follow_logs = format(
      config.active['cmd_ship_container_logs'],
      ship_docker: config.active['cmd_ship_docker'],
      ship_hostname: ship_hostname,
      args: args
    )
    run_and_exit cmd_follow_logs
  end
end

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
takeltau-0.46.9 lib/takeltau/ship/container/logs.rb
takeltau-0.46.8 lib/takeltau/ship/container/logs.rb
takeltau-0.46.5 lib/takeltau/ship/container/logs.rb
takeltau-0.46.1 lib/takeltau/ship/container/logs.rb
takeltau-0.46.0 lib/takeltau/ship/container/logs.rb
takeltau-0.45.27 lib/takeltau/ship/container/logs.rb
takeltau-0.45.26 lib/takeltau/ship/container/logs.rb
takeltau-0.45.24 lib/takeltau/ship/container/logs.rb
takeltau-0.45.23 lib/takeltau/ship/container/logs.rb
takeltau-0.45.22 lib/takeltau/ship/container/logs.rb
takeltau-0.45.21 lib/takeltau/ship/container/logs.rb
takeltau-0.45.19 lib/takeltau/ship/container/logs.rb
takeltau-0.45.17 lib/takeltau/ship/container/logs.rb
takeltau-0.45.16 lib/takeltau/ship/container/logs.rb
takeltau-0.45.14 lib/takeltau/ship/container/logs.rb
takeltau-0.45.13 lib/takeltau/ship/container/logs.rb
takeltau-0.45.12 lib/takeltau/ship/container/logs.rb
takeltau-0.45.11 lib/takeltau/ship/container/logs.rb
takeltau-0.45.10 lib/takeltau/ship/container/logs.rb
takeltau-0.45.9 lib/takeltau/ship/container/logs.rb