From 82160d234a3f403a5ca0d60bcf5f623dfe83ba24 Mon Sep 17 00:00:00 2001 From: Michael Sofaer Date: Sun, 31 Oct 2010 17:16:23 -0700 Subject: [PATCH] Symlink the gems, too. This is probably crazy, but should work for now --- chef/cookbooks/centos/recipes/bootstrap.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/chef/cookbooks/centos/recipes/bootstrap.rb b/chef/cookbooks/centos/recipes/bootstrap.rb index 86326a7dc..b3bc9a522 100644 --- a/chef/cookbooks/centos/recipes/bootstrap.rb +++ b/chef/cookbooks/centos/recipes/bootstrap.rb @@ -14,6 +14,12 @@ def harden_ruby(ruby_string) to file end end + Dir.glob("/usr/local/rvm/gems/#{ruby_string}/bin/*").each do |file| + link "/usr/local/bin/#{file.split('/').last}" do + to file + end + end + end harden_ruby("ruby-1.8.7-p302") \ No newline at end of file