Method: Whm::Server#list_packages

Defined in:
lib/whm/server.rb

#list_packagesObject

Lists all hosting packages that are available for use by the current WHM user. If the current user is a reseller, they may not see some packages that exist if those packages are not available to be used for account creation at this time.



230
231
232
233
# File 'lib/whm/server.rb', line 230

def list_packages
  data = get_xml(:url => "listpkgs")
  check_for_cpanel_errors_on(data)["package"]
end