class AemLookout::Sync::Hostname

Attributes

url[RW]

Public Class Methods

new(hostname) click to toggle source
# File lib/aem_lookout/sync.rb, line 12
def initialize(hostname)
  @url = URI.parse(hostname)
end

Public Instance Methods

credentials() click to toggle source
# File lib/aem_lookout/sync.rb, line 20
def credentials
  "#{url.user}:#{url.password}"
end
url_without_credentials() click to toggle source
# File lib/aem_lookout/sync.rb, line 16
def url_without_credentials
  "#{url.scheme}://#{url.host}:#{url.port}/crx/-/jcr:root"
end