Class: LogManager::Generators::ExecuteGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- LogManager::Generators::ExecuteGenerator
- Defined in:
- lib/generators/log_manager/execute_generator.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.source_root ⇒ Object
9 10 11 |
# File 'lib/generators/log_manager/execute_generator.rb', line 9 def self.source_root @source_root ||= LogManager.path end |
Instance Method Details
#generate_log_rotate_file ⇒ Object
13 14 15 16 |
# File 'lib/generators/log_manager/execute_generator.rb', line 13 def generate_log_rotate_file LogManager.setup([:environment]) LogManager.log_rotate end |