diff options
author | Luke Kanies <luke@madstop.com> | 2008-08-25 21:50:13 -0700 |
---|---|---|
committer | Luke Kanies <luke@madstop.com> | 2008-08-26 22:40:42 -0700 |
commit | 98ac24a9e155b1d3c2358da3e94610071b0e3cfb (patch) | |
tree | 1dad1cd71a59fbaf081adf76222fd6046e78980b /lib | |
parent | 6e43c2d1179aed5ae92111afee1d3b868cf5f0a2 (diff) | |
download | puppet-98ac24a9e155b1d3c2358da3e94610071b0e3cfb.tar.gz puppet-98ac24a9e155b1d3c2358da3e94610071b0e3cfb.tar.xz puppet-98ac24a9e155b1d3c2358da3e94610071b0e3cfb.zip |
Adding a "source" attribute to fileserving instances.
This will be used to cache the source that was used
to retrieve the instance.
Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/puppet/file_serving/base.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/puppet/file_serving/base.rb b/lib/puppet/file_serving/base.rb index 94e337b99..9a50833de 100644 --- a/lib/puppet/file_serving/base.rb +++ b/lib/puppet/file_serving/base.rb @@ -7,6 +7,10 @@ require 'puppet/file_serving' # The base class for Content and Metadata; provides common # functionality like the behaviour around links. class Puppet::FileServing::Base + # This is for external consumers to store the source that was used + # to retrieve the metadata. + attr_accessor :source + # Does our file exist? def exist? begin |