lib/neptuno/cli/list.rb in neptuno-1.0.6 vs lib/neptuno/cli/list.rb in neptuno-1.0.7
- old
+ new
@@ -59,9 +59,12 @@
def call(**options)
neptuno_procs, docker_procs = running_services
branches = service_current_branches
dates = last_commit_date
+ x = docker_compose_services - neptuno_procs.select{|k,v| v.length > 0}.keys
+ x.each{|y| neptuno_procs[y] = ""}
+
procs = neptuno_procs.map do |name, *processes|
display_date = get_display_date(dates[name], options.fetch(:relative))
state = docker_procs[name]&.match?(/running/) ? 'on' : nil
state ||= docker_procs[name]&.match?(/exited/) ? 'dead' : 'off'
{ state: state, name: name, branch: branches[name], last_commit: display_date, processes: processes }