method
add_shared_options_for
v3.2.8 -
Show latest stable
-
0 notes -
Class: AppBase
- 1.0.0
- 1.1.6
- 1.2.6
- 2.0.3
- 2.1.0
- 2.2.1
- 2.3.8
- 3.0.0
- 3.0.9
- 3.1.0 (0)
- 3.2.1 (0)
- 3.2.8 (0)
- 3.2.13 (0)
- 4.0.2 (0)
- 4.1.8 (0)
- 4.2.1 (0)
- 4.2.7 (0)
- 4.2.9 (0)
- 5.0.0.1 (0)
- 5.1.7 (0)
- 5.2.3 (0)
- 6.0.0 (0)
- 6.1.3.1 (0)
- 6.1.7.7 (0)
- 7.0.0 (0)
- 7.1.3.2 (0)
- 7.1.3.4 (0)
- What's this?
add_shared_options_for(name)
public
Hide source
# File railties/lib/rails/generators/app_base.rb, line 21 def self.add_shared_options_for(name) class_option :builder, :type => :string, :aliases => "-b", :desc => "Path to a #{name} builder (can be a filesystem path or URL)" class_option :template, :type => :string, :aliases => "-m", :desc => "Path to an #{name} template (can be a filesystem path or URL)" class_option :skip_gemfile, :type => :boolean, :default => false, :desc => "Don't create a Gemfile" class_option :skip_bundle, :type => :boolean, :default => false, :desc => "Don't run bundle install" class_option :skip_git, :type => :boolean, :aliases => "-G", :default => false, :desc => "Skip Git ignores and keeps" class_option :skip_active_record, :type => :boolean, :aliases => "-O", :default => false, :desc => "Skip Active Record files" class_option :skip_sprockets, :type => :boolean, :aliases => "-S", :default => false, :desc => "Skip Sprockets files" class_option :database, :type => :string, :aliases => "-d", :default => "sqlite3", :desc => "Preconfigure for selected database (options: #{DATABASES.join('/')})" class_option :javascript, :type => :string, :aliases => '-j', :default => 'jquery', :desc => 'Preconfigure for selected JavaScript library' class_option :skip_javascript, :type => :boolean, :aliases => "-J", :default => false, :desc => "Skip JavaScript files" class_option :dev, :type => :boolean, :default => false, :desc => "Setup the #{name} with Gemfile pointing to your Rails checkout" class_option :edge, :type => :boolean, :default => false, :desc => "Setup the #{name} with Gemfile pointing to Rails repository" class_option :skip_test_unit, :type => :boolean, :aliases => "-T", :default => false, :desc => "Skip Test::Unit files" class_option :help, :type => :boolean, :aliases => "-h", :group => :rails, :desc => "Show this help message and quit" class_option :old_style_hash, :type => :boolean, :default => false, :desc => "Force using old style hash (:foo => 'bar') on Ruby >= 1.9" end