master
1git "/usr/local/rbenv" do
2 repository "https://github.com/sstephenson/rbenv.git"
3end
4
5cookbook_file "/etc/profile.d/rbenv.sh"
6cookbook_file "/etc/gemrc"
7directory "/usr/local/rbenv/plugins"
8
9git "/usr/local/rbenv/plugins/ruby-build" do
10 repository "https://github.com/sstephenson/ruby-build.git"
11end
12
13ruby_version = node["stronglifters"]["ruby_version"]
14stronglifters_rbenv "install #{ruby_version}" do
15 not_if { ::File.exist?("/usr/local/rbenv/versions/#{ruby_version}") }
16end
17rbenv "global #{ruby_version}"
18
19gem "bundler"