Issue #6833 has been updated by Daniel Pittman. Status changed from Accepted to Closed
https://github.com/puppetlabs/puppet/commit/1f59c7781ddeb9e1f73d2a901a71f6f827998451 ---------------------------------------- Feature #6833: support 'script' as "short form" action creation mechanism. https://projects.puppetlabs.com/issues/6833 Author: Daniel Pittman Status: Closed Priority: Normal Assignee: Daniel Pittman Category: interfaces Target version: Affected Puppet version: Keywords: Branch: At the moment the `action` method is a fairly heavy tool: it provides a DSL, and is designed to allow substantial metadata to be added to the action. For some users this is low on value, since they just want to write a little script that drives things a bit differently. Which there is substantial value in the metadata, adding the capability to do these light-weight things quickly is valid. To meet this we add a `script` action; the contrast is: action :foo do # other metadata goes here invoke do |args| # method body goes here end end script :bar do |args| # method body goes here end # ...and if you want metadata, you have to add it in more ugly, procedural ways. -- 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://projects.puppetlabs.com/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.
