Issue #6833 has been updated by Daniel Pittman. Assignee deleted (Daniel Pittman)
---------------------------------------- Feature #6833: support 'script' as "short form" action creation mechanism. https://projects.puppetlabs.com/issues/6833#change-92331 * Author: Daniel Pittman * Status: Closed * Priority: Normal * Assignee: * Category: Faces * 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 unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/puppet-bugs?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
