Can you log the value of ENV[GEM_HOME] and EBV[GEM_PATH]
> 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.