Class: Tinet::Command::Pull
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 |
# File 'lib/tinet/command/pull.rb', line 6 def run nodes.each do |node| unless node.image.nil? stdout, * = sudo "docker pull #{node.image}" logger.info stdout unless dry_run end end end |