Skip to content

Instantly share code, notes, and snippets.

@cpuguy83
Created July 18, 2013 13:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cpuguy83/6029405 to your computer and use it in GitHub Desktop.
Save cpuguy83/6029405 to your computer and use it in GitHub Desktop.
My ruby recipe
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