Issue #1263 has been updated by admin.

Status changed from New to Ready for Checkin


----------------------------------------
Feature #1263: Support client-side templates
http://reductivelabs.com/redmine/issues/show/1263

Author: luke
Status: Ready for Checkin
Priority: Normal
Assigned to: jamtur01
Category: RAL
Target version: 0.24.5
Complexity: Unknown
Patch: Tests
Stage: Ready for checkin


I've just pushed a commit to my repo in feature/resource_template that provides 
client-side templates.  The templates are evaluated with access to the 
specified resource's attributes.

They're mostly useful for building composite resources, maybe like so:
<pre>
... my resource code ...
  def generate
    Puppet::Type.type(:file).create :path => "/my/file",
      content => Puppet::Util::ResourceTemplate.new("/my/template", 
self).evaluate
  end
...
</pre>
This is a small patch, and will likely rarely be used (and probably never from 
within Puppet's core), but it's already in use at a client and will likely be 
used at other places that need to build composite resources or use an API to 
generate resources rather than using the language for specifying all of them.


----------------------------------------
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://reductivelabs.com/redmine/my/account

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to