From 6ed8dfaf7c0cf091dca0374de310f524b0a033cc Mon Sep 17 00:00:00 2001 From: Luke Kanies Date: Mon, 25 Aug 2008 17:43:35 -0500 Subject: Adding the content writer to the content class. Also choosing a fully qualified fake name when creating content instances from raw content. Signed-off-by: Luke Kanies --- lib/puppet/file_serving/content.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/puppet/file_serving/content.rb b/lib/puppet/file_serving/content.rb index b30070dd6..0f169c28b 100644 --- a/lib/puppet/file_serving/content.rb +++ b/lib/puppet/file_serving/content.rb @@ -14,12 +14,14 @@ class Puppet::FileServing::Content < Puppet::FileServing::Base extend Puppet::Indirector indirects :file_content, :extend => Puppet::FileServing::IndirectionHooks + attr_writer :content + def self.supported_formats [:raw] end def self.from_raw(content) - instance = new("eh") + instance = new("/this/is/a/fake/path") instance.content = content instance end -- cgit