diff options
author | Luke Kanies <luke@madstop.com> | 2008-03-18 16:32:53 -0500 |
---|---|---|
committer | Luke Kanies <luke@madstop.com> | 2008-03-18 16:32:53 -0500 |
commit | 34129d938bcf07d05f6602b7764c688ec4ed226c (patch) | |
tree | 5db6a967384ce98b1a015a9b3a0f26f5482fb5f2 | |
parent | f62eec8a2e2e3fcd64d6a659c0b6c231cb1b0c9e (diff) | |
download | puppet-34129d938bcf07d05f6602b7764c688ec4ed226c.tar.gz puppet-34129d938bcf07d05f6602b7764c688ec4ed226c.tar.xz puppet-34129d938bcf07d05f6602b7764c688ec4ed226c.zip |
Removing obsolete code from the fileserving handler.
This was obsoleted in 0.24.2.
-rwxr-xr-x | lib/puppet/network/handler/fileserver.rb | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/lib/puppet/network/handler/fileserver.rb b/lib/puppet/network/handler/fileserver.rb index 751a77220..3e62cdbd9 100755 --- a/lib/puppet/network/handler/fileserver.rb +++ b/lib/puppet/network/handler/fileserver.rb @@ -429,55 +429,6 @@ class Puppet::Network::Handler Puppet::Util.logmethods(self, true) - def getfileobject(dir, links, client = nil) - unless path_exists?(dir, client) - self.debug "File source %s does not exist" % dir - return nil - end - - return fileobj(dir, links, client) - end - - # Run 'retrieve' on a file. This gets the actual parameters, so - # we can pass them to the client. - def check(obj) - # Retrieval is enough here, because we don't want to cache - # any information in the state file, and we don't want to generate - # any state changes or anything. We don't even need to sync - # the checksum, because we're always going to hit the disk - # directly. - - # We're now caching file data, using the LoadedFile to check the - # disk no more frequently than the :filetimeout. - path = obj[:path] - sync = sync(path) - unless data = @@files[path] - data = {} - sync.synchronize(Sync::EX) do - @@files[path] = data - data[:loaded_obj] = Puppet::Util::LoadedFile.new(path) - data[:values] = properties(obj) - return data[:values] - end - end - - changed = nil - sync.synchronize(Sync::SH) do - changed = data[:loaded_obj].changed? - end - - if changed - sync.synchronize(Sync::EX) do - data[:values] = properties(obj) - return data[:values] - end - else - sync.synchronize(Sync::SH) do - return data[:values] - end - end - end - # Create a map for a specific client. def clientmap(client) { |