Sha256: fe0c0e784e6f95e96a583de1ccb998c47c89af8669402ddd48f12ded0b6f60f5

Contents?: true

Size: 629 Bytes

Versions: 6

Compression:

Stored size: 629 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

        return data
    end

    def search(request)
        return unless result = super

        result.each { |instance| instance.collect }

        return result
    end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
puppet-0.25.5 lib/puppet/indirector/file_metadata/file.rb
puppet-0.25.4 lib/puppet/indirector/file_metadata/file.rb
puppet-0.25.3 lib/puppet/indirector/file_metadata/file.rb
puppet-0.25.2 lib/puppet/indirector/file_metadata/file.rb
puppet-0.25.1 lib/puppet/indirector/file_metadata/file.rb
puppet-0.25.0 lib/puppet/indirector/file_metadata/file.rb