- From: Jesse Campbell <
>
- To:
- Subject: [chef] Re: Re: chef 0.10.6 and chef_gem
- Date: Sun, 5 Aug 2012 13:27:11 -0400
thanks! this looks perfect!
i have one other question, but it'll get a new thread.
-jesse
On Sun, Aug 5, 2012 at 9:37 AM, AJ Christensen
<
>
wrote:
>
On 6 August 2012 01:36, AJ Christensen
>
<
>
>
wrote:
>
> Heavy Water produced this cookbook to add chef_gem to versions < 0.10.12
>
>
>
> http://community.opscode.com/cookbooks/chef_gem
>
>
>
> alternately, you can use the old school way of doing it (compile time):
>
>
>
> On 6 August 2012 01:32, Jesse Campbell
>
> <
>
>
> wrote:
>
>> well chef_gem didn't exist in 0.10.6, but we haven't upgraded yet, and
>
>> i'm running into a problem...
>
>>
>
>> I want to do something like this:
>
>
>
> g = gem_package "f5-icontrol" do
>
> source "#{Chef::Config[:file_cache_path]}/f5-icontrol-10.2.0.2.gem"
>
> action :nothing
>
> end
>
>
>
> g.run_action(:install)
>
>
>
>
# oh, you need to refresh the gem cache before the require, too :)
>
>
Gem.clear_paths
>
>
> require 'f5-icontrol'
>
>
>
>>
>
>> But I get an error... f5-icontrol cannot be included by the recipe,
>
>> because it isn't installed yet... it isn't installed yet because the
>
>> recipe requires... you get the idea.
>
>>
>
>> Is there a chef 0.10.6 way of doing this? the docs say to do it with
>
>> chef_gem.
>
>>
>
>> thanks!
Archive powered by MHonArc 2.6.16.