Class: Tinet::Command::Pull

Inherits:
Base
  • Object
show all
Defined in:
lib/tinet/command/pull.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize

Methods included from Shell

#sh, #sudo

Constructor Details

This class inherits a constructor from Tinet::Command::Base

Instance Method Details

#runObject



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