lib/lumberg/cpanel/domain_lookup.rb in lumberg-2.0.0.pre4 vs lib/lumberg/cpanel/domain_lookup.rb in lumberg-2.0.0.pre5

- old
+ new

@@ -11,11 +11,11 @@ # # domain_lookup.list # # Returns Hash API response. def list - perform_request({ :api_function => 'getbasedomains' }) + perform_request({ api_function: 'getbasedomains' }) end # Public: Retrieve the absolute and relative paths to a specific domain's # document root. # @@ -32,11 +32,11 @@ # # gets DocumentRoot for addon domain (or subdomain) # domain_lookup.document_root(domain: 'addon.example.com') # # Returns Hash API response. def document_root(options = {}) - perform_request({ :api_function => 'getdocroot' }.merge(options)) + perform_request({ api_function: 'getdocroot' }.merge(options)) end alias :docroot :document_root # Public: Retrieve the full paths to all of your document roots # @@ -46,11 +46,11 @@ # # domain_lookup.document_roots # # Returns Hash API response. def document_roots - perform_request({ :api_function => 'getdocroots' }) + perform_request({ api_function: 'getdocroots' }) end alias :docroots :document_roots # Public: Retrieve the total number of base domains associated with your # cPanel account. @@ -61,10 +61,10 @@ # # domain_lookup.count_domains # # Returns Hash API response. def count - perform_request({ :api_function => 'countbasedomains' }) + perform_request({ api_function: 'countbasedomains' }) end end end end