lib/cts/mpx/service.rb in cts-mpx-1.0.3 vs lib/cts/mpx/service.rb in cts-mpx-1.1.0

- old
+ new

@@ -51,19 +51,21 @@ def url(account_id = 'urn:theplatform:auth:root') account_id ||= 'urn:theplatform:auth:root' Exceptions.raise_unless_account_id account_id reg = Registry.domains[account_id] return reg[name] if reg + nil end # checks if we have a given entry in the local registry # @param [String] account_id long form account id (ownerId) # @return [Boolean] true if it is available, false if it is not def url?(account_id = 'urn:theplatform:auth:root') Exceptions.raise_unless_account_id account_id u = url account_id return true if u + false end end end end