Sha256: 293c77075a3a6f423bf3b052b5f83aeded7260c5794471d95dcfb91608a0bbe8

Contents?: true

Size: 651 Bytes

Versions: 5

Compression:

Stored size: 651 Bytes

Contents

#
#  Created by Luke Kanies on 2007-10-16.
#  Copyright (c) 2007. All rights reserved.

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_attributes

        return data
    end

    def search(request)
        return unless result = super

        result.each { |instance| instance.collect_attributes }

        return result
    end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
puppet-0.24.9 lib/puppet/indirector/file_metadata/file.rb
puppet-0.24.6 lib/puppet/indirector/file_metadata/file.rb
puppet-0.24.5 lib/puppet/indirector/file_metadata/file.rb
puppet-0.24.7 lib/puppet/indirector/file_metadata/file.rb
puppet-0.24.8 lib/puppet/indirector/file_metadata/file.rb