diff options
author | Luke Kanies <luke@madstop.com> | 2008-08-25 17:43:35 -0500 |
---|---|---|
committer | Luke Kanies <luke@madstop.com> | 2008-08-26 22:40:41 -0700 |
commit | 6ed8dfaf7c0cf091dca0374de310f524b0a033cc (patch) | |
tree | 77c97024fe929c61d6efdf2b707b365c111b079c /lib/puppet/file_serving/content.rb | |
parent | 92e144b3051ebd177c034e692a59162b3902e128 (diff) | |
download | puppet-6ed8dfaf7c0cf091dca0374de310f524b0a033cc.tar.gz puppet-6ed8dfaf7c0cf091dca0374de310f524b0a033cc.tar.xz puppet-6ed8dfaf7c0cf091dca0374de310f524b0a033cc.zip |
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 <luke@madstop.com>
Diffstat (limited to 'lib/puppet/file_serving/content.rb')
-rw-r--r-- | lib/puppet/file_serving/content.rb | 4 |
1 files changed, 3 insertions, 1 deletions
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 |