class Tagrity::Command::Status

Public Class Methods

call() click to toggle source
# File lib/tagrity/commands/status.rb, line 7
def call
  PidFile.alive_pid_files.each do |pid_file|
    dir_a = pid_file.dir.split('/')
    puts ::CLI::UI.fmt "{{cyan:#{pid_file.pid}}} {{green:#{dir_a[0,dir_a.length-1].join('/')}/}}{{magenta:#{dir_a[-1]}}}"
  end
end