Sha256: 60ca84d9067a8763caf8d8256748129cf22b04659aed9da74afa7bca4b719a7e

Contents?: true

Size: 594 Bytes

Versions: 28

Compression:

Stored size: 594 Bytes

Contents

require 'rails/version'

if ['--version', '-v'].include?(ARGV.first)
  puts "Rails #{Rails::VERSION::STRING}"
  exit(0)
end

if ARGV.first != "new"
  ARGV[0] = "--help"
else
  ARGV.shift
end

require 'rubygems' if ARGV.include?("--dev")

require 'rails/generators'
require 'rails/generators/rails/app/app_generator'

module Rails
  module Generators
    class AppGenerator
      # 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
end

Rails::Generators::AppGenerator.start

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
railties-3.1.12 lib/rails/commands/application.rb
railties-3.1.11 lib/rails/commands/application.rb
railties-3.1.10 lib/rails/commands/application.rb
railties-3.1.9 lib/rails/commands/application.rb
railties-3.1.8 lib/rails/commands/application.rb
railties-3.1.7 lib/rails/commands/application.rb
railties-3.1.6 lib/rails/commands/application.rb
railties-3.1.5 lib/rails/commands/application.rb
railties-3.1.5.rc1 lib/rails/commands/application.rb
railties-3.1.4 lib/rails/commands/application.rb
railties-3.1.4.rc1 lib/rails/commands/application.rb
railties-3.1.3 lib/rails/commands/application.rb
railties-3.1.2 lib/rails/commands/application.rb
railties-3.1.2.rc2 lib/rails/commands/application.rb
railties-3.1.2.rc1 lib/rails/commands/application.rb
railties-3.1.1 lib/rails/commands/application.rb
railties-3.1.1.rc3 lib/rails/commands/application.rb
railties-3.1.1.rc2 lib/rails/commands/application.rb
railties-3.1.1.rc1 lib/rails/commands/application.rb
railties-3.1.0 lib/rails/commands/application.rb