Sha256: dbf2ce48d93fab818ef23ab676c4c17e83c868fd1c91136ae20ad393cb80cc8a
Contents?: true
Size: 244 Bytes
Versions: 1
Compression:
Stored size: 244 Bytes
Contents
require 'metaractor' module ConsulStockpile class DetectCanary include Metaractor KEY = 'stockpile/canary'.freeze def call canary = Diplomat::Kv.get(KEY, {}, :return) context.exists = canary != '' end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
consul_stockpile-0.1.5 | lib/consul_stockpile/detect_canary.rb |