Method: Puppet::Configurer::Downloader#evaluate
- Defined in:
- lib/vendor/puppet/configurer/downloader.rb
#evaluate ⇒ Object
Evaluate our download, returning the list of changed values.
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
# File 'lib/vendor/puppet/configurer/downloader.rb', line 26 def evaluate Puppet.info "Retrieving #{name}" files = [] begin Timeout.timeout(self.class.timeout) do catalog.apply do |trans| trans.changed?.find_all do |resource| yield resource if block_given? files << resource[:path] end end end rescue Puppet::Error, Timeout::Error => detail puts detail.backtrace if Puppet[:debug] Puppet.err "Could not retrieve #{name}: #{detail}" end files end |