Class: Trebuchet::Backend::Disabled
- Inherits:
-
Object
- Object
- Trebuchet::Backend::Disabled
- Defined in:
- lib/trebuchet/backend/disabled.rb
Overview
This backend stores nothing and returns empty/false data (launch? will always be false) It can be used to disable all Trebuchet features (especially if Trebuchet fails to connect to it’s normal data store)
Instance Method Summary collapse
- #append_strategy(feature, strategy, options = nil) ⇒ Object
- #get_feature_names ⇒ Object
- #get_strategy(feature_name) ⇒ Object
-
#initialize(*args) ⇒ Disabled
constructor
A new instance of Disabled.
- #set_strategy(feature, strategy, options = nil) ⇒ Object
Constructor Details
#initialize(*args) ⇒ Disabled
Returns a new instance of Disabled.
6 7 |
# File 'lib/trebuchet/backend/disabled.rb', line 6 def initialize(*args) end |
Instance Method Details
#append_strategy(feature, strategy, options = nil) ⇒ Object
17 18 19 |
# File 'lib/trebuchet/backend/disabled.rb', line 17 def append_strategy(feature, strategy, = nil) false end |
#get_feature_names ⇒ Object
21 22 23 |
# File 'lib/trebuchet/backend/disabled.rb', line 21 def get_feature_names [] end |
#get_strategy(feature_name) ⇒ Object
9 10 11 |
# File 'lib/trebuchet/backend/disabled.rb', line 9 def get_strategy(feature_name) [:default] end |
#set_strategy(feature, strategy, options = nil) ⇒ Object
13 14 15 |
# File 'lib/trebuchet/backend/disabled.rb', line 13 def set_strategy(feature, strategy, = nil) false end |