Sha256: 55b8bf9d1fac96059b5fc2db15b4f7e7d04cf35efdb1838494976339a017a624

Contents?: true

Size: 649 Bytes

Versions: 20

Compression:

Stored size: 649 Bytes

Contents

require "rails/generators"
require "rails/generators/rails/app/app_generator"

module Rails
  module Generators
    class AppGenerator # :nodoc:
      # We want to exit on failure to be kind to other libraries
      # This is only when accessing via CLI
      def self.exit_on_failure?
        true
      end
    end
  end

  module Command
    class ApplicationCommand < Base # :nodoc:
      hide_command!

      def help
        perform # Punt help output to the generator.
      end

      def perform(*args)
        Rails::Generators::AppGenerator.start \
          Rails::Generators::ARGVScrubber.new(args).prepare!
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
railties-5.1.7 lib/rails/commands/application/application_command.rb
railties-5.1.7.rc1 lib/rails/commands/application/application_command.rb
railties-5.1.6.2 lib/rails/commands/application/application_command.rb
railties-5.1.6.1 lib/rails/commands/application/application_command.rb
railties-5.1.6 lib/rails/commands/application/application_command.rb
railties-5.1.5 lib/rails/commands/application/application_command.rb
railties-5.1.5.rc1 lib/rails/commands/application/application_command.rb
railties-5.1.4 lib/rails/commands/application/application_command.rb
railties-5.1.4.rc1 lib/rails/commands/application/application_command.rb
railties-5.1.3 lib/rails/commands/application/application_command.rb
railties-5.1.3.rc3 lib/rails/commands/application/application_command.rb
railties-5.1.3.rc2 lib/rails/commands/application/application_command.rb
railties-5.1.3.rc1 lib/rails/commands/application/application_command.rb
railties-5.1.2 lib/rails/commands/application/application_command.rb
railties-5.1.2.rc1 lib/rails/commands/application/application_command.rb
railties-5.1.1 lib/rails/commands/application/application_command.rb
railties-5.1.0 lib/rails/commands/application/application_command.rb
railties-5.1.0.rc2 lib/rails/commands/application/application_command.rb
railties-5.1.0.rc1 lib/rails/commands/application/application_command.rb
railties-5.1.0.beta1 lib/rails/commands/application/application_command.rb