Hello Chefs,
As many of you know, setting the default action on LWRP resources is pretty tricky right now since it is not exposed by the DSL. Avishai Ish-Shalom has kindly provided a patch for this issue[1][2]. Avishai's patch allows you to specify the default action by adding `:default => _DEFAULT_` to the list of actions on the resource, like so:
actions :pass_buck, :prepare_thumbs, :twiddle_thumbs, :default => :pass_buck
An alternative implementation that has been proposed is to simply use the first action in the list as the default. Please chime in if you have a strong preference for one or the other.
--
Dan DeLeo
1. http://tickets.opscode.com/browse/CHEF-1789
2. https://github.com/avishai-ish-shalom/chef/tree/CHEF-1789
Archive powered by MHonArc 2.6.16.