metamaps--metamaps/lib/tasks/heroku.rake
Connor Turland 6cb5e0b334 test
2012-09-22 22:50:25 -04:00

15 lines
No EOL
407 B
Ruby

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