- From: Seth Falcon <
>
- To: KC Braunschweig <
>
- Cc: Chef Dev <
>
- Subject: [[chef-dev]] Re: [[chef-dev]] Re: [[chef-dev]] Re: [[chef-dev]] Default Actions for LWRP Resources [CHEF-1789]
- Date: Tue, 24 May 2011 15:57:53 -0700
An alternative that keeps the default explicit is a new method:
actions :prepare_thumbs, :twiddle_thumbs
default_action :pass_buck
I somewhat prefer this over actions taking a hash with :default key as
you don't have specify an action twice.
--
Seth Falcon | Senior Software Design Engineer | Opscode | @sfalcon
Archive powered by MHonArc 2.6.16.