Created
January 30, 2010 02:24
-
-
Save jeffrydegrande/290360 to your computer and use it in GitHub Desktop.
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 "writes a .gem config file for heroku based on the applications' gem config" | |
task :gems => :environment do | |
File.open(File.join(Rails.root, '.gems'), 'w') do |f| | |
Rails.configuration.gems.each do |gem| | |
f.write "#{gem.name} #{"--version #{gem.requirement}" if gem.requirement}\n" | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment