Class: Tagrity::Command::Status
- Inherits:
-
Object
- Object
- Tagrity::Command::Status
- Defined in:
- lib/tagrity/commands/status.rb
Class Method Summary collapse
Class Method Details
.call ⇒ Object
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 |