summaryrefslogtreecommitdiff
path: root/lib/chef/resource/template.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add default_action and allowed_actions to Resource class, remove from LWRPJohn Keiser2015-06-011-1/+0
|
* Add use_automatic_resource_nameJohn Keiser2015-06-011-1/+1
|
* Make resource_name call providesJohn Keiser2015-06-011-1/+1
|
* Move resource_name up to Resource, and figure out its value automaticallyJohn Keiser2015-06-011-1/+0
|
* Update some ruby 1.8 related comments (issue #2497)Xabier de Zuazo2015-01-271-3/+2
|
* Chef-12 RC Provider ResolverLamont Granquist2014-10-241-2/+1
| | | | | makes resource and provider class resolution more dynamic. begins deprecation of Chef::Platform static mapping.
* Rework template/file loading to not require the default/ and to accept an ↵Noah Kantrowitz2014-10-041-1/+1
| | | | | | | array for explicit search path manipulation. This is the backwards compatible solution to migrate away from the implicit search path in favor of making it explicit when needed (which is rarely). Conflicts: lib/chef/cookbook_version.rb
* Document template helper definition inline.danielsdeleo2013-05-291-0/+78
|
* Move helper module compilation inside template resourcedanielsdeleo2013-05-291-5/+50
| | | | | | | - Resource::Template compiles helper methods/module bodies into a collection of modules for inclusion into the template context. - Resource::Template checks for obvious invalid input to helper definition methods.
* Add helper method/module support to template resourcedanielsdeleo2013-05-291-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds helper methods to a template via the following syntax: ``` template "name" do # singular method definition: helper(:method_name) { method_body } # inline module definition helpers do def method_name method_body end end # external module inclusion helpers(MyHelperModule) end ``` In each of the above cases, variables defined by Chef (e.g., `@node`) or the user (via `:variables => {}`) can be accessed as normal. Could use the following improvements: - Template partials are not supported - Input validation on Resource::Template should be improved - Needs Unit tests for Template provider/implementation classes
* [OC-3564] move core Chef to the repo root \o/ \m/Seth Chisamore2012-10-301-0/+76
| | | | The opscode/chef repository now only contains the core Chef library code used by chef-client, knife and chef-solo!
* big refactor of the repo layout. move to a chef gem and a chef-server gem ↵Ezra Zygmuntowicz2008-10-081-49/+0
| | | | all with proper deps
* Adding remote_file and remote_directory supportAdam Jacob2008-08-161-3/+3
|
* Added template support, changed license to Apache v 2Adam Jacob2008-08-161-17/+14
|
* Updating search ticketsAdam Jacob2008-07-281-0/+52