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