test
This commit is contained in:
parent
082fc97c30
commit
6cb5e0b334
1 changed files with 15 additions and 0 deletions
|
@ -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
|
Loading…
Reference in a new issue