- From: <
>
- To:
- Subject: [chef] Installing Gems
- Date: Thu, 20 Oct 2011 10:57:29 -0700 (PDT)
So I am trying to install a gem via Chef like so (just like their doc says),
cookbook_file "#{Chef::Config[:file_cache_path]}/pony.gem" do
source "pony.gem"
backup false
mode "0755"
end
gem_package "pony" do
action :install
source "#{Chef::Config[:file_cache_path]}/pony.gem"
end
But when I run chef-client I get this,
NOTE: Gem.source_index is deprecated, use Specification. It will be removed on
or after 2011-11-01.
Gem.source_index called from
/usr/lib64/ruby/gems/1.8/gems/chef-0.10.2/bin/../lib/chef/provider/package/rubygems.rb:202.
NOTE: Gem::SourceIndex#search is deprecated with no replacement. It will be
removed on or after 2011-11-01.
Gem::SourceIndex#search called from
/usr/lib64/ruby/gems/1.8/gems/chef-0.10.2/bin/../lib/chef/provider/package/rubygems.rb:76.
Running to irb and doing a quick require says that it can't find the gem
either.
- [chef] Installing Gems, bjbq4d, 10/20/2011
Archive powered by MHonArc 2.6.16.