Class: MavenLogger::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- MavenLogger::Generators::InstallGenerator
- Defined in:
- lib/generators/maven_logger/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy_initializer ⇒ Object
11 12 13 |
# File 'lib/generators/maven_logger/install_generator.rb', line 11 def copy_initializer template 'maven_logger.rb', 'config/initializers/maven_logger.rb' end |
#copy_locale ⇒ Object
15 16 17 |
# File 'lib/generators/maven_logger/install_generator.rb', line 15 def copy_locale copy_file '../../../config/locales/en.yml', 'config/locales/maven_logger.en.yml' end |
#copy_models ⇒ Object
19 20 21 22 |
# File 'lib/generators/maven_logger/install_generator.rb', line 19 def copy_models copy_file 'logger_entry.rb', 'app/models/logger_entry.rb' copy_file 'logger_schema.rb', 'app/models/logger_schema.rb' end |