1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Add rake initializer

This task prints out initializers for an application. It is useful to
develop a rubygem which involves the initialization process.
This commit is contained in:
Naoto Kaneko 2015-03-14 01:41:21 +09:00
parent 5c83f51740
commit baa9ffb822
3 changed files with 14 additions and 0 deletions

View file

@ -1,3 +1,10 @@
* Add `rake initializer`
This task prints out initializers for an application. It is useful to
develop a rubygem which involves the initialization process.
*Naoto Kaneko*
* Created rake restart task. Restarts your Rails app by touching the * Created rake restart task. Restarts your Rails app by touching the
`tmp/restart.txt`. `tmp/restart.txt`.

View file

@ -4,6 +4,7 @@ require 'rake'
%w( %w(
annotations annotations
framework framework
initializer
log log
middleware middleware
misc misc

View file

@ -0,0 +1,6 @@
desc "Prints out initializers for your application"
task initializer: :environment do
Rails.application.initializers.tsort_each do |initializer|
puts initializer.name
end
end