class Tinet::Command::Ps
Public Instance Methods
run()
click to toggle source
# 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
Private Instance Methods
all()
click to toggle source
@return [boolean]
# File lib/tinet/command/ps.rb, line 23 def all @options[:all] end