lib/lumberg/cpanel/mysql_db.rb
def add_user_db(options = {})
        perform_request({
          api_function: 'adduserdb',
          'arg-0' => options.delete(:dbname),
          'arg-1' => options.delete(:dbuser),
          'arg-2' => options.delete(:perms_list)
        }.merge(default_options(options)))
      end
# Public: Grant a user permission to access a cPanel account's database.
#
# options - Hash options for API call params (default: {})
#   :dbname - String name of the database to allow the user to access.
#   :dbuser - String MySQL user who should be given access to the database.
#   :perms_list - A space-separated String containing a list of permissions
#                 to grant to the user
#                 (e.g. "all" or "alter drop create delete insert update lock" )
#
# Returns Hash API respone.
Grant a user permission to access a cPanel account's database.
options - Hash options for API call params (default: {})
:dbname - String name of the database to allow the user to access.
:dbuser - String MySQL user who should be given access to the database.
:perms_list - A space-separated String containing a list of permissions
to grant to the user

Returns Hash API respone.
Grant a user permission to access a cPanel account ' s database . options - Hash options for API call params ( default : {} ) : dbname - String name of the database to allow the user to access . : dbuser - String MySQL user who should be given access to the database . : perms_list - A space - separated String containing a list of permissions to grant to the user Returns Hash API respone .
def add_user_db(options = {})
        perform_request({
          api_function: 'adduserdb',
          'arg-0' => options.delete(:dbname),
          'arg-1' => options.delete(:dbuser),
          'arg-2' => options.delete(:perms_list)
        }.merge(default_options(options)))
      end
def add_user_db ( options = { } ) perform_request ( { api_function : 'adduserdb' , 'arg-0' => options . delete ( :dbname ) , 'arg-1' => options . delete ( :dbuser ) , 'arg-2' => options . delete ( :perms_list ) } . merge ( default_options ( options ) ) ) end
Public: Grant a user permission to access a cPanel account's database.
Public : Grant a user permission to access a cPanel account ' s database .
options