summaryrefslogtreecommitdiffstats
path: root/lib/puppet/parser/resource.rb
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2008-04-11 11:34:51 -0500
committerLuke Kanies <luke@madstop.com>2008-04-11 11:34:51 -0500
commit4aaad26509b2dc9bd45782ec45231e6ea53a4a37 (patch)
treee0715ba0328f149bf030b63a9ce30e3fb57a5d26 /lib/puppet/parser/resource.rb
parent2925ad1cb9aa820785afca58c4fb6e34274dadd4 (diff)
downloadpuppet-4aaad26509b2dc9bd45782ec45231e6ea53a4a37.tar.gz
puppet-4aaad26509b2dc9bd45782ec45231e6ea53a4a37.tar.xz
puppet-4aaad26509b2dc9bd45782ec45231e6ea53a4a37.zip
Modified the 'master' handler to use the Catalog class to
compile node configurations, rather than using the Configuration handler, which was never used directly. I removed the Configuration handler as a result. Modified the 'master' handler (responsible for sending configurations to clients) to always return Time.now as its compile date, so configurations will always get recompiled.
Diffstat (limited to 'lib/puppet/parser/resource.rb')
-rw-r--r--lib/puppet/parser/resource.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/puppet/parser/resource.rb b/lib/puppet/parser/resource.rb
index 4b48ff6cf..d214a60ee 100644
--- a/lib/puppet/parser/resource.rb
+++ b/lib/puppet/parser/resource.rb
@@ -303,6 +303,12 @@ class Puppet::Parser::Resource
return bucket
end
+ # Convert this resource to a RAL resource. We hackishly go via the
+ # transportable stuff.
+ def to_type
+ to_trans.to_type
+ end
+
def to_transobject
# Now convert to a transobject
obj = Puppet::TransObject.new(@ref.title, @ref.type)