Module: ConsadoleAggregator
- Defined in:
- lib/consadole_aggregator.rb,
lib/consadole_aggregator/live.rb,
lib/consadole_aggregator/news.rb,
lib/consadole_aggregator/helper.rb,
lib/consadole_aggregator/version.rb
Defined Under Namespace
Modules: News
Classes: Helper, Live
Constant Summary
collapse
- DEFAULT_ROOT_DIR =
File.expand_path('~/.consadole_aggregator')
- DEFAULT_LOG_NAME =
'consadole_aggregator.log'
- VERSION =
"0.2.14"
Class Method Summary
collapse
Class Method Details
.logger ⇒ Object
26
27
28
|
# File 'lib/consadole_aggregator.rb', line 26
def logger
@logger ||= Logger.new(File.join(root_dir, DEFAULT_LOG_NAME))
end
|
.root_dir=(root_dir) ⇒ Object
20
21
22
23
24
|
# File 'lib/consadole_aggregator.rb', line 20
def root_dir= root_dir
FileUtil.mkdir_p root_dir unless File.exist? root_dir
@logger &&= Logger.new(File.join(root_dir, DEFAULT_LOG_NAME))
@root_dir = root_dir
end
|