Created
May 10, 2009 20:36
-
-
Save bmaland/109726 to your computer and use it in GitHub Desktop.
Rake task for building .gems
This file contains hidden or 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
| namespace :heroku do | |
| desc "Populates the .gems manifest file, to be used with Heroku" | |
| task :gems => :environment do | |
| File.open(File.join(RAILS_ROOT, ".gems"), "w") do |f| | |
| Rails.configuration.gems.each do |dep| | |
| f.puts dep.send(:install_command)[1..-1].join(' ') | |
| end | |
| end | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment