Harden Ruby again. This needs a serious refactor.
This commit is contained in:
parent
aac9080299
commit
3bb6ab5545
1 changed files with 15 additions and 3 deletions
|
|
@ -1,7 +1,19 @@
|
||||||
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
|
||||||
|
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
|
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"
|
||||||
include_recipe "common::main"
|
include_recipe "common::main"
|
||||||
Loading…
Reference in a new issue