From e5a78009f6bd593e7e3957f0dadb470e623396dd Mon Sep 17 00:00:00 2001 From: Jesse Wolfe Date: Mon, 15 Mar 2010 14:16:09 -0700 Subject: Feature #3347 REST-ified FileBucket FileBucket Files have been reimplemented as an indirector terminus so that they can be transmitted over REST. The old Network::Client.dipper has been replaced with a compatibility later in FileBucket::Dipper that uses the indirector to access filebucket termini. Slightly revised patch: * No longer allows nil contents in FileBucket outside of initialization * Uses File.exist? instead of the deprecated File.exists? * Tweaks JSON serialization and de-serialization to include "path" Deferred issues: * Feature #3371 "FileBucket should not keep files in memory". * Feature #3372 "Replace FileBucket Dipper with more idiomatic calls" --- spec/unit/application/main.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spec/unit/application/main.rb') diff --git a/spec/unit/application/main.rb b/spec/unit/application/main.rb index 74c40c14a..ea8c43fe6 100755 --- a/spec/unit/application/main.rb +++ b/spec/unit/application/main.rb @@ -53,7 +53,7 @@ describe "Puppet" do Puppet.stubs(:trap) Puppet::Log.stubs(:level=) Puppet.stubs(:parse_config) - Puppet::Network::Client.dipper.stubs(:new) + Puppet::FileBucket::Dipper.stubs(:new) STDIN.stubs(:read) @main.options.stubs(:[]).with(any_parameters) -- cgit