From 6cb5e0b334af682aea93726ef50ff78f56b8eecd Mon Sep 17 00:00:00 2001 From: Connor Turland Date: Sat, 22 Sep 2012 22:50:25 -0400 Subject: [PATCH] test --- lib/tasks/heroku.rake | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/lib/tasks/heroku.rake b/lib/tasks/heroku.rake index e69de29b..af2dddf9 100644 --- a/lib/tasks/heroku.rake +++ b/lib/tasks/heroku.rake @@ -0,0 +1,15 @@ +namespace :heroku do + desc "Generate the Heroku gems manifest from gem dependencies" + task :gems do + RAILS_ENV='production' + Rake::Task[:environment].invoke + list = Rails.configuration.gems.collect do |g| + command, *options = g.send(:install_command) + options.join(" ") + "\n" + end + + File.open(File.join(RAILS_ROOT, '.gems'), 'w') do |f| + f.write(list) + end + end +end \ No newline at end of file