Created
July 18, 2013 13:44
-
-
Save cpuguy83/6029405 to your computer and use it in GitHub Desktop.
My ruby recipe
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" | |
ruby_version = node[:_common_system][:ruby][:version] | |
rbenv_ruby ruby_version do |rbenv| | |
rbenv.ruby_version ruby_version | |
rbenv.global true | |
end | |
def gem_install(gem, ruby) | |
rbenv_gem gem do | |
ruby_version ruby | |
end | |
end | |
gems = node[:_common_system][:ruby][:gems] | |
gems.each do |gem| | |
gem_install gem, ruby_version | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment