class Rsg::Generators::App::AppGenerator
AppGenerator
is the entrypoint for generation of new apps which builds on top of the core ‘rails new` command
Public Class Methods
source_paths()
click to toggle source
# File lib/rsg/generators/app/app_generator.rb, line 55 def self.source_paths @__source_paths ||= [ ::Rails::Generators::AppGenerator.source_root, Pathname.new(__FILE__).dirname.join("templates").expand_path ] end
Public Instance Methods
set_default_accessors!()
click to toggle source
Calls superclass method
# File lib/rsg/generators/app/app_generator.rb, line 62 def set_default_accessors! bundled_template = Rsg.lookup_app_template(options[:template]) super self.rails_template = bundled_template if bundled_template end
Protected Instance Methods
get_builder_class()
click to toggle source
rubocop:disable Naming/AccessorMethodName
# File lib/rsg/generators/app/app_generator.rb, line 71 def get_builder_class Rsg::Generators::App::AppBuilder end