- From: Daniel DeLeo <
>
- To:
- Subject: [chef] Re: Re: Re: Re: Re: making a library global?
- Date: Tue, 20 Jul 2010 08:28:30 -0700
On Tue, Jul 20, 2010 at 1:44 AM, Ringo De Smet
<
>
wrote:
>
After re-reading the wiki, I found out that the mapping is handled in
>
Chef::Platform. In my library file, I added the following line:
>
>
Chef::Platform::platforms[:default][:pylabs_qshell] =
>
Chef::Provider::Script
>
>
Don't know if this is the proper way to do it, but it seems to work.
>
My script seems to launch (except for errors in the script itself now
>
:-) ).
>
>
Ringo
>
You can also set the
variable on your resource, and it will be used.
http://github.com/opscode/chef/blob/master/chef/lib/chef/resource/deploy_revision.rb
HTH,
Dan DeLeo
Archive powered by MHonArc 2.6.16.