Harden Ruby again. This needs a serious refactor.

This commit is contained in:
Michael Sofaer 2010-11-04 19:49:01 -07:00
parent aac9080299
commit 3bb6ab5545

View file

@ -1,6 +1,18 @@
execute "say hello" do def harden_ruby(ruby_string)
command "echo welcome to diaspora chef" Dir.glob("/usr/local/rvm/wrappers/#{ruby_string}/*").each do |file|
link "/usr/local/bin/#{file.split('/').last}" do
to file
end 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")
include_recipe "centos::image_magick" include_recipe "centos::image_magick"
include_recipe "centos::mongo_db" include_recipe "centos::mongo_db"