Skip to content

Instantly share code, notes, and snippets.

@jeffrydegrande
Created January 30, 2010 02:24
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 jeffrydegrande/290360 to your computer and use it in GitHub Desktop.
Save jeffrydegrande/290360 to your computer and use it in GitHub Desktop.
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