Class: Kaede::Config
- Inherits:
-
Object
- Object
- Kaede::Config
- Defined in:
- lib/kaede/config.rb
Instance Attribute Summary collapse
-
#database_url ⇒ Object
Returns the value of attribute database_url.
-
#redis ⇒ Object
Returns the value of attribute redis.
-
#redis_queue ⇒ Object
Returns the value of attribute redis_queue.
-
#twitter ⇒ Object
Returns the value of attribute twitter.
-
#twitter_target ⇒ Object
Returns the value of attribute twitter_target.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/kaede/config.rb', line 16 def initialize self.b25 = '/usr/bin/b25' self.recpt1 = '/usr/bin/recpt1' self.assdumper = '/usr/bin/assdumper' self.clean_ts = '/usr/bin/clean-ts' self.statvfs = '/usr/bin/statvfs' basedir = Pathname.new(ENV['HOME']).join('kaede') self.database_url = "sqlite://#{basedir.join('kaede.db')}" self.record_dir = basedir.join('records') self.cache_dir = basedir.join('cache') self.cabinet_dir = basedir.join('cabinet') self.twitter = nil self.twitter_target = nil self.redis = Redis.new self.redis_queue = 'jobs' end |
Instance Attribute Details
#database_url ⇒ Object
Returns the value of attribute database_url.
6 7 8 |
# File 'lib/kaede/config.rb', line 6 def database_url @database_url end |
#redis ⇒ Object
Returns the value of attribute redis.
6 7 8 |
# File 'lib/kaede/config.rb', line 6 def redis @redis end |
#redis_queue ⇒ Object
Returns the value of attribute redis_queue.
6 7 8 |
# File 'lib/kaede/config.rb', line 6 def redis_queue @redis_queue end |
#twitter ⇒ Object
Returns the value of attribute twitter.
6 7 8 |
# File 'lib/kaede/config.rb', line 6 def twitter @twitter end |
#twitter_target ⇒ Object
Returns the value of attribute twitter_target.
6 7 8 |
# File 'lib/kaede/config.rb', line 6 def twitter_target @twitter_target end |