Sha256: 1c835d7c3fd068b9853a7a1e16ddca4f6e57d5350362c673e60d56a6c28eb1f0

Contents?: true

Size: 493 Bytes

Versions: 81

Compression:

Stored size: 493 Bytes

Contents

require 'puppet/file_serving/metadata'
require 'puppet/indirector/file_metadata'
require 'puppet/indirector/direct_file_server'

class Puppet::Indirector::FileMetadata::File < Puppet::Indirector::DirectFileServer
  desc "Retrieve file metadata directly from the local filesystem."

  def find(request)
    return unless data = super
    data.collect

    data
  end

  def search(request)
    return unless result = super

    result.each { |instance| instance.collect }

    result
  end
end

Version data entries

81 entries across 81 versions & 4 rubygems

Version Path
puppet-2.7.4 lib/puppet/indirector/file_metadata/file.rb