Skip to content

Instantly share code, notes, and snippets.

@akm
Created October 19, 2009 15:37
Show Gist options
  • Save akm/213466 to your computer and use it in GitHub Desktop.
Save akm/213466 to your computer and use it in GitHub Desktop.
# http://henrik.nyh.se/2008/10/cap-gems-install-and-a-gem-dependency-gotcha
namespace :gems do
desc "setup gemcutter"
task :gemcutter, :roles => :app do
run "#{sudo} gem install gemcutter"
run "#{sudo} gem tumble"
end
desc "Install gems"
task :install, :roles => :app do
run "cd #{current_path} && #{sudo} rake RAILS_ENV=production gems:install"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment