Class: LogManager::Generators::ExecuteGenerator

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.source_rootObject



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_fileObject



13
14
15
16
# File 'lib/generators/log_manager/execute_generator.rb', line 13

def generate_log_rotate_file
  LogManager.setup(options[:environment])
  LogManager.log_rotate
end