Class: Minuteman::Configuration
- Inherits:
-
Object
- Object
- Minuteman::Configuration
- Defined in:
- lib/minuteman/configuration.rb
Instance Attribute Summary collapse
-
#operations_prefix ⇒ Object
Returns the value of attribute operations_prefix.
-
#parallel ⇒ Object
Returns the value of attribute parallel.
-
#patterns ⇒ Object
Returns the value of attribute patterns.
-
#prefix ⇒ Object
Returns the value of attribute prefix.
-
#redis ⇒ Object
Returns the value of attribute redis.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/minuteman/configuration.rb', line 6 def initialize @redis = Ohm.redis @prefix = "Minuteman".freeze @operations_prefix = "#{@prefix}::Operations:" @parallel = false @patterns = { year: -> (time) { time.strftime("%Y") }, month: -> (time) { time.strftime("%Y-%m") }, day: -> (time) { time.strftime("%Y-%m-%d") }, hour: -> (time) { time.strftime("%Y-%m-%d %H") }, minute: -> (time) { time.strftime("%Y-%m-%d %H:%M") }, } end |
Instance Attribute Details
#operations_prefix ⇒ Object
Returns the value of attribute operations_prefix.
4 5 6 |
# File 'lib/minuteman/configuration.rb', line 4 def operations_prefix @operations_prefix end |
#parallel ⇒ Object
Returns the value of attribute parallel.
4 5 6 |
# File 'lib/minuteman/configuration.rb', line 4 def parallel @parallel end |
#patterns ⇒ Object
Returns the value of attribute patterns.
4 5 6 |
# File 'lib/minuteman/configuration.rb', line 4 def patterns @patterns end |
#prefix ⇒ Object
Returns the value of attribute prefix.
4 5 6 |
# File 'lib/minuteman/configuration.rb', line 4 def prefix @prefix end |
#redis ⇒ Object
Returns the value of attribute redis.
3 4 5 |
# File 'lib/minuteman/configuration.rb', line 3 def redis @redis end |