Method: Puppet::FileServing::HttpMetadata#collect

Defined in:
lib/puppet/file_serving/http_metadata.rb

#collectObject

Override of the parent class method. Does not call super! We can only return metadata that was extracted from the HTTP headers during #initialize.



37
38
39
40
41
42
43
44
45
# File 'lib/puppet/file_serving/http_metadata.rb', line 37

def collect
  # Prefer the checksum_type from the indirector request options
  # but fall back to the alternative otherwise
  [ @checksum_type, :md5, :mtime ].each do |type|
    @checksum_type = type
    @checksum = @checksums[type]
    return if @checksum
  end
end