Sha256: cef692b18662cadc3804db3fe1a114b65077c0867ea81c0021a9e386fd734bf2
Contents?: true
Size: 442 Bytes
Versions: 1
Compression:
Stored size: 442 Bytes
Contents
module FeatureFlagMonitor class ConsulKey def self.by_id(id) self.new(:i, id) end def self.by_cname(cname) self.new(:n, cname) end def self.for_types self.new(:m, 'types').to_key end def initialize(key_type, identifier) @key_parts = ['ffm', key_type, identifier] end def for_domain to_key end def to_key @key_parts.join('/') << '?stale' end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
feature-flag-monitor-0.5.4 | lib/feature_flag_monitor/consul_key.rb |