Sha256: 97e1293eb656f9b00bf496c97069cb61ff69c2d76d28ba5cf8c9729f96c7b8bc

Contents?: true

Size: 529 Bytes

Versions: 15

Compression:

Stored size: 529 Bytes

Contents

# frozen_string_literal: true

module Jets
  module Command
    class InitializersCommand < Base # :nodoc:
      include EnvironmentArgument

      desc "initializers", "Print out all defined initializers in the order they are invoked by Jets."
      def perform
        extract_environment_option_from_argument
        require_application_and_environment!

        Jets.application.initializers.tsort_each do |initializer|
          say "#{initializer.context_class}.#{initializer.name}"
        end
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
jets-5.0.13 lib/jets/commands/initializers/initializers_command.rb
jets-5.0.12 lib/jets/commands/initializers/initializers_command.rb
jets-5.0.11 lib/jets/commands/initializers/initializers_command.rb
jets-5.0.10 lib/jets/commands/initializers/initializers_command.rb
jets-5.0.9 lib/jets/commands/initializers/initializers_command.rb
jets-5.0.8 lib/jets/commands/initializers/initializers_command.rb
jets-5.0.7 lib/jets/commands/initializers/initializers_command.rb
jets-5.0.6 lib/jets/commands/initializers/initializers_command.rb
jets-5.0.5 lib/jets/commands/initializers/initializers_command.rb
jets-5.0.4 lib/jets/commands/initializers/initializers_command.rb
jets-5.0.3 lib/jets/commands/initializers/initializers_command.rb
jets-5.0.2 lib/jets/commands/initializers/initializers_command.rb
jets-5.0.1 lib/jets/commands/initializers/initializers_command.rb
jets-5.0.0 lib/jets/commands/initializers/initializers_command.rb
jets-5.0.0.beta1 lib/jets/commands/initializers/initializers_command.rb