mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
44007c0709
Commands generally prefer say to puts.
16 lines
432 B
Ruby
16 lines
432 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Rails
|
|
module Command
|
|
class InitializersCommand < Base # :nodoc:
|
|
desc "Print out all defined initializers in the order they are invoked by Rails."
|
|
def perform
|
|
require_application_and_environment!
|
|
|
|
Rails.application.initializers.tsort_each do |initializer|
|
|
say "#{initializer.context_class}.#{initializer.name}"
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|