Class: Maguro::AppGenerator
- Inherits:
-
Rails::Generators::AppGenerator
- Object
- Rails::Generators::AppGenerator
- Maguro::AppGenerator
- Defined in:
- lib/maguro/app_generator.rb
Instance Method Summary collapse
-
#finish_template ⇒ Object
Overriding Rails::Generators::AppGenerator#finish_template.
-
#initialize(*args) ⇒ AppGenerator
constructor
Overriding Rails::Generators::AppGenerator#finish_template.
Constructor Details
#initialize(*args) ⇒ AppGenerator
Overriding Rails::Generators::AppGenerator#finish_template. Allows maguro to do stuff before the default rails generator is run.
30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/maguro/app_generator.rb', line 30 def initialize(*args) super check_ruby_version # Thor's option hash is frozen. Unfreeze so we can update our own variables on it. # Risk: Don't accidentally modify options you didn't mean to! self. = .dup end |
Instance Method Details
#finish_template ⇒ Object
Overriding Rails::Generators::AppGenerator#finish_template. This will run our maguro customizations after all of the default rails customizations.
45 46 47 48 49 |
# File 'lib/maguro/app_generator.rb', line 45 def finish_template Maguro::Features.new(builder).run_all_updates super end |