lib/fake_consul/service.rb
def register(definition, options = {})
      new_service = build_service(definition.stringify_keys)
      services.push new_service
      persist!
    end
# Fake register
#
# Performs no http requests but retrieves data from local hash
#
# @param definition [Hash]
# @param options [Hash] unused/unimplemented
# @return [Boolean] true
Fake register
Performs no http requests but retrieves data from local hash
Fake register Performs no http requests but retrieves data from local hash
def register(definition, options = {})
      new_service = build_service(definition.stringify_keys)
      services.push new_service
      persist!
    end
def register ( definition , options = { } ) new_service = build_service ( definition . stringify_keys ) services . push new_service persist! end
Fake register
Performs no http requests but retrieves data from local hash
Fake register Performs no http requests but retrieves data from local hash
None
Boolean
definition
options
None
None