Class: Tagrity::Command::Status

Inherits:
Object
  • Object
show all
Defined in:
lib/tagrity/commands/status.rb

Class Method Summary collapse

Class Method Details

.callObject



7
8
9
10
11
12
# 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