Sha256: eabad0858d6af269a53138d475d44c193b78a350f3d7b0344b7ff220b96869d5
Contents?: true
Size: 610 Bytes
Versions: 4
Compression:
Stored size: 610 Bytes
Contents
# frozen_string_literal: true module Neptuno module Docker class Log < Neptuno::CLI::Base include ::Neptuno::TTY::Config desc "Docker: Show a container's log" def call(**options) command_service_to("log", service_as_args: options[:args].first) do |service, project| success = system("cd #{neptuno_path} && docker logs -f #{project}_#{service}_1") unless success puts "Trying #{project}-#{services.first}-1" system("cd #{neptuno_path} && docker logs -f #{project}-#{service}-1") end end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
neptuno-1.5.0 | lib/neptuno/docker/log.rb |
neptuno-1.4.10 | lib/neptuno/docker/log.rb |
neptuno-1.2.1 | lib/neptuno/docker/log.rb |
neptuno-1.2.0 | lib/neptuno/docker/log.rb |