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:
parent
5c83f51740
commit
baa9ffb822
3 changed files with 14 additions and 0 deletions
|
@ -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`.
|
||||||
|
|
||||||
|
|
|
@ -4,6 +4,7 @@ require 'rake'
|
||||||
%w(
|
%w(
|
||||||
annotations
|
annotations
|
||||||
framework
|
framework
|
||||||
|
initializer
|
||||||
log
|
log
|
||||||
middleware
|
middleware
|
||||||
misc
|
misc
|
||||||
|
|
6
railties/lib/rails/tasks/initializer.rake
Normal file
6
railties/lib/rails/tasks/initializer.rake
Normal 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
|
Loading…
Reference in a new issue