Module: Shatter::Util

Defined in:
lib/shatter/util.rb

Defined Under Namespace

Classes: Logger

Class Method Summary collapse

Class Method Details

.instances_keyObject



21
22
23
# File 'lib/shatter/util.rb', line 21

def self.instances_key
  "/shater_service_instances"
end

.zookeeper_response_key(uuid) ⇒ Object



29
30
31
32
33
# File 'lib/shatter/util.rb', line 29

def self.zookeeper_response_key(uuid)
  raise "Cant produce key without uuid" if uuid.nil?

  "#{zookeeper_response_key_root}/#{uuid}"
end

.zookeeper_response_key_rootObject



25
26
27
# File 'lib/shatter/util.rb', line 25

def self.zookeeper_response_key_root
  "/shatter::response_data_locations"
end