Method: Puppet::FileBucketFile::File#head

Defined in:
lib/puppet/indirector/file_bucket_file/file.rb

#head(request) ⇒ Object



90
91
92
93
94
95
96
# File 'lib/puppet/indirector/file_bucket_file/file.rb', line 90

def head(request)
  checksum, files_original_path = request_to_checksum_and_path(request)
  contents_file = path_for(request.options[:bucket_path], checksum, 'contents')
  paths_file = path_for(request.options[:bucket_path], checksum, 'paths')

  Puppet::FileSystem.exist?(contents_file) && matches(paths_file, files_original_path)
end