summaryrefslogtreecommitdiffstats
path: root/lib/puppet
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2009-12-04 16:49:57 -0800
committertest branch <puppet-dev@googlegroups.com>2010-02-17 06:50:53 -0800
commit576accd675e43c6bf7af1c8e0f66151f798a4820 (patch)
treece75f643ce5a7871df76dbe8ad7ff9726b1b15de /lib/puppet
parent58920a0bb95b8579162500856b2e6524ff20168e (diff)
downloadpuppet-576accd675e43c6bf7af1c8e0f66151f798a4820.tar.gz
puppet-576accd675e43c6bf7af1c8e0f66151f798a4820.tar.xz
puppet-576accd675e43c6bf7af1c8e0f66151f798a4820.zip
Removing unused Checksum::File terminus
Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'lib/puppet')
-rw-r--r--lib/puppet/indirector/checksum/file.rb33
1 files changed, 0 insertions, 33 deletions
diff --git a/lib/puppet/indirector/checksum/file.rb b/lib/puppet/indirector/checksum/file.rb
deleted file mode 100644
index 5489b40e8..000000000
--- a/lib/puppet/indirector/checksum/file.rb
+++ /dev/null
@@ -1,33 +0,0 @@
-require 'puppet/checksum'
-require 'puppet/indirector/file'
-
-class Puppet::Checksum::File < Puppet::Indirector::File
- desc "Store files in a directory set based on their checksums."
-
- def initialize
- Puppet.settings.use(:filebucket)
- end
-
- def path(checksum)
- path = []
- path << Puppet[:bucketdir] # Start with the base directory
- path << checksum[0..7].split("").join(File::SEPARATOR) # Add sets of directories based on the checksum
- path << checksum # And the full checksum name itself
- path << "contents" # And the actual file name
-
- path.join(File::SEPARATOR)
- end
-
- def save(request)
- path = File.dirname(path(request.key))
-
- # Make the directories if necessary.
- unless FileTest.directory?(path)
- Puppet::Util.withumask(0007) do
- FileUtils.mkdir_p(path)
- end
- end
-
- super
- end
-end