Method: Puppet::FileBucketFile::File#head

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

#head(request) ⇒ Object



36
37
38
39
40
41
# File 'lib/vendor/puppet/indirector/file_bucket_file/file.rb', line 36

def head(request)
  checksum, files_original_path = request_to_checksum_and_path(request)
  dir_path = path_for(request.options[:bucket_path], checksum)

  ::File.exists?(::File.join(dir_path, 'contents')) and path_match(dir_path, files_original_path)
end