Symlink the RVM wrapper scripts to /usr/local/bin
This commit is contained in:
parent
3f7955f978
commit
fd55a56235
1 changed files with 11 additions and 1 deletions
|
|
@ -6,4 +6,14 @@ execute "nokogiri deps" do
|
||||||
end
|
end
|
||||||
execute "eventmachine deps" do
|
execute "eventmachine deps" do
|
||||||
command "yum install -y gcc-c++"
|
command "yum install -y gcc-c++"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def harden_ruby(ruby_string)
|
||||||
|
Dir.glob("/usr/local/rvm/wrappers/#{ruby_string}/*").each do |file|
|
||||||
|
link "/usr/local/bin/#{file.split('/').last}" do
|
||||||
|
to file
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
harden_ruby("ruby-1.8.7-p302")
|
||||||
Loading…
Reference in a new issue