Class: Pytty::Client::Cli::PsCommand
- Inherits:
-
Clamp::Command
- Object
- Clamp::Command
- Pytty::Client::Cli::PsCommand
- Defined in:
- lib/pytty/client/cli/ps_command.rb
Instance Method Summary collapse
Instance Method Details
#execute ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/pytty/client/cli/ps_command.rb', line 13 def execute process_yields = Async.run do Pytty::Client::Api::Ps.run end.wait unless quiet? puts "id cmd" puts "-"*40 end for process_yield in process_yields do if quiet? puts process_yield.fetch "id" else puts process_yield end end end |