[chef] Re: Re: chef_gem vs. gem_package


Chronological Thread 
  • From: Sam Darwin < >
  • To:
  • Subject: [chef] Re: Re: chef_gem vs. gem_package
  • Date: Tue, 6 Aug 2013 19:07:22 +0300

> As long as you're using the Omnibus installs, gem_package should fail
> if you haven't installed Ruby on your system.

doesn't fail.

using ubuntu or rhel:

the route53 recipe uses gem_package:

fog = gem_package "fog" do
  action :nothing
end
fog.run_action( :install )

but ruby isn't on the local system:

:/#
 which gem
:/#
 which ruby
:/#

:/#
 locate fog

/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/fog-1.10.1
...

the route53 recipe works, without a local ruby.



Archive powered by MHonArc 2.6.16.

§