Class: ConsulStockpile::DetectCanary

Inherits:
Object
  • Object
show all
Includes:
Metaractor
Defined in:
lib/consul_stockpile/detect_canary.rb

Constant Summary collapse

KEY =
'stockpile/canary'.freeze

Instance Method Summary collapse

Instance Method Details

#callObject



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