Class: ConsulStockpile::DetectCanary
- Inherits:
-
Object
- Object
- ConsulStockpile::DetectCanary
- Includes:
- Metaractor
- Defined in:
- lib/consul_stockpile/detect_canary.rb
Constant Summary collapse
- KEY =
'stockpile/canary'.freeze
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
9 10 11 12 |
# File 'lib/consul_stockpile/detect_canary.rb', line 9 def call canary = Diplomat::Kv.get(KEY, {}, :return) context.exists = canary != '' end |