summaryrefslogtreecommitdiffstats
path: root/lib/puppet/file_bucket
diff options
context:
space:
mode:
authorJesse Wolfe <jes5199@gmail.com>2010-03-29 17:10:40 -0700
committertest branch <puppet-dev@googlegroups.com>2010-02-17 06:50:53 -0800
commit23ccefe0e8b51af19a0283c0d8eb3de09b6e4c31 (patch)
treef5a13141985b8956987b0aad3f84269be7902243 /lib/puppet/file_bucket
parentd8e1b272ec321d5f86558672252de60983751a15 (diff)
downloadpuppet-23ccefe0e8b51af19a0283c0d8eb3de09b6e4c31.tar.gz
puppet-23ccefe0e8b51af19a0283c0d8eb3de09b6e4c31.tar.xz
puppet-23ccefe0e8b51af19a0283c0d8eb3de09b6e4c31.zip
REST: hide Request object
This change to the REST branch restores some sanity by explicitly allowing a destination URL for indirector save() calls, removing a hack that I was using to accomplish this.
Diffstat (limited to 'lib/puppet/file_bucket')
-rw-r--r--lib/puppet/file_bucket/dipper.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/puppet/file_bucket/dipper.rb b/lib/puppet/file_bucket/dipper.rb
index c73d76345..b13e590a9 100644
--- a/lib/puppet/file_bucket/dipper.rb
+++ b/lib/puppet/file_bucket/dipper.rb
@@ -38,9 +38,7 @@ class Puppet::FileBucket::Dipper
file_bucket_file = Puppet::FileBucket::File.new(contents, :bucket_path => @local_path, :path => file)
dest_path = "#{@rest_path}#{file_bucket_file.name}"
- request = Puppet::Indirector::Request.new(:file_bucket_file, :save, dest_path)
-
- file_bucket_file.save(request)
+ file_bucket_file.save(dest_path)
return file_bucket_file.checksum_data
rescue => detail
puts detail.backtrace if Puppet[:trace]