lib/neptuno/docker/log.rb in neptuno-1.0.10 vs lib/neptuno/docker/log.rb in neptuno-1.2.0
- old
+ new
@@ -5,10 +5,10 @@
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|
+ 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