Class: Motr::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Motr::Generators::InstallGenerator
- Defined in:
- lib/generators/motr/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy_initializer ⇒ Object
8 9 10 |
# File 'lib/generators/motr/install_generator.rb', line 8 def copy_initializer template "motr.rb", "config/initializers/motr.rb" end |
#copy_locale ⇒ Object
12 13 14 |
# File 'lib/generators/motr/install_generator.rb', line 12 def copy_locale copy_file "../../../config/locales/en.yml", "config/locales/motr.en.yml" end |
#show_post_install_notes ⇒ Object
16 17 18 |
# File 'lib/generators/motr/install_generator.rb', line 16 def show_post_install_notes readme "post_install" if behavior == :invoke end |