Class: Tinet::Command::Ps
Instance Method Summary collapse
Methods inherited from Base
Methods included from Shell
Constructor Details
This class inherits a constructor from Tinet::Command::Base
Instance Method Details
#run ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/tinet/command/ps.rb', line 6 def run if all stdout, * = sudo "docker ps -a -f name=#{Tinet.namespace}" else stdout, * = sudo "docker ps -f name=#{Tinet.namespace}" end unless dry_run logger.info 'TINET Docker Containers' logger.info '-' * 50 logger.info stdout end end |