Skip to content

Instantly share code, notes, and snippets.

@rcreasey
Created March 25, 2011 01:20
Show Gist options
  • Select an option

  • Save rcreasey/886204 to your computer and use it in GitHub Desktop.

Select an option

Save rcreasey/886204 to your computer and use it in GitHub Desktop.
package "curl"
include_recipe "build-essential"
include_recipe "git"
git node[:rvm][:clone_dir] do
repository node[:rvm][:repository]
revision node[:rvm][:version]
action :sync
not_if { File.exists?( "#{node[:rvm][:clone_dir]}/install" ) }
end
execute "Installing RVM" do
command "./install"
cwd node[:rvm][:clone_dir]
only_if { File.exists?( "#{node[:rvm][:clone_dir]}/install" ) }
end
group node[:rvm][:group] do
members node[:rvm][:default_users]
end
template "/etc/rvmrc" do
source "rvmrc.erb"
owner "root"
group "root"
backup false
end
directory node[:rvm][:path] do
group node[:rvm][:group]
recursive true
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment