Created
August 19, 2013 19:45
-
-
Save cpuguy83/6273196 to your computer and use it in GitHub Desktop.
Chef rbenv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
include_recipe "rbenv::default" | |
include_recipe "rbenv::ruby_build" | |
@my_ruby_version = node[:_common_system][:ruby][:version] | |
rbenv_ruby @my_ruby_version do |rbenv| | |
rbenv.ruby_version @my_ruby_version | |
rbenv.global true | |
end | |
def gem_install(gem) | |
rbenv_gem gem do | |
ruby_version @my_ruby_version | |
end | |
end | |
gems = node[:_common_system][:ruby][:gems] | |
gems.each do |gem| | |
gem_install gem | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment