[[chef-dev]] Re: [[chef-dev]] Default Actions for LWRP Resources [CHEF-1789]


Chronological Thread 
  • From: Pat Collins < >
  • To: Chef Dev < >
  • Subject: [[chef-dev]] Re: [[chef-dev]] Default Actions for LWRP Resources [CHEF-1789]
  • Date: Tue, 24 May 2011 15:14:10 -0400

I'd prefer explicitly setting the default LWRP action.

On Tue, May 24, 2011 at 2:24 PM, Daniel DeLeo < "> > wrote:
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





--
Pat Collins



Archive powered by MHonArc 2.6.16.

§