Class: MavenLogger::Generators::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/maven_logger/install_generator.rb

Instance Method Summary collapse

Instance Method Details

#copy_initializerObject



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_localeObject



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_modelsObject



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