lib/esgob/client.rb
def domains_slaves_list
    Hash[
      call('domains.slaves.list')[:domains].map do |item|
        [item[:domain], item[:masterip]]
      end
    ]
  end
# Returns all hosted slave domains as a hash
# @return [Hash] Domain name as key, master ip as value
Returns all hosted slave domains as a hash
Returns all hosted slave domains as a hash
def domains_slaves_list
    Hash[
      call('domains.slaves.list')[:domains].map do |item|
        [item[:domain], item[:masterip]]
      end
    ]
  end
def domains_slaves_list Hash [ call ( 'domains.slaves.list' ) [ :domains ] . map do | item | [ item [ :domain ] , item [ :masterip ] ] end ] end
Returns all hosted slave domains as a hash
Returns all hosted slave domains as a hash
Domain name as key, master ip as value
Domain name as key master ip as value
Hash