summaryrefslogtreecommitdiffstats
path: root/lib/puppet/file_bucket
diff options
context:
space:
mode:
authorPaul Berry <paul@puppetlabs.com>2010-11-29 11:56:40 -0800
committerPaul Berry <paul@puppetlabs.com>2010-11-29 12:08:26 -0800
commit71ecad9904c8c48c023e90e5fbea5b26b180c9cf (patch)
tree7109f1605e4dceca9e48ef58b41bda559ba4901d /lib/puppet/file_bucket
parent14f8160674628340ccfd79baeb84f66cf1e0398a (diff)
downloadpuppet-71ecad9904c8c48c023e90e5fbea5b26b180c9cf.tar.gz
puppet-71ecad9904c8c48c023e90e5fbea5b26b180c9cf.tar.xz
puppet-71ecad9904c8c48c023e90e5fbea5b26b180c9cf.zip
Maint: Refactor code to use <class>.indirection.<method>
Replaced uses of the find, search, destroy, and expire methods on model classes with direct calls to the indirection objects. Also removed the old methods that delegated to the indirection object.
Diffstat (limited to 'lib/puppet/file_bucket')
-rw-r--r--lib/puppet/file_bucket/dipper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/file_bucket/dipper.rb b/lib/puppet/file_bucket/dipper.rb
index dbfcdcd43..8d6938930 100644
--- a/lib/puppet/file_bucket/dipper.rb
+++ b/lib/puppet/file_bucket/dipper.rb
@@ -47,7 +47,7 @@ class Puppet::FileBucket::Dipper
# Retrieve a file by sum.
def getfile(sum)
source_path = "#{@rest_path}md5/#{sum}"
- file_bucket_file = Puppet::FileBucket::File.find(source_path, :bucket_path => @local_path)
+ file_bucket_file = Puppet::FileBucket::File.indirection.find(source_path, :bucket_path => @local_path)
raise Puppet::Error, "File not found" unless file_bucket_file
file_bucket_file.to_s