lib/lumberg/whm/account.rb
# Some WHM API methods always return a result, even if the user
# doesn't actually exist. This makes it seem like your request
# was successful when it really wasn't
#
# Example
#   verify_user('bob') do
#      change_password()
#   end
Some WHM API methods always return a result, even if the user
doesn't actually exist. This makes it seem like your request
was successful when it really wasn't


Some WHM API methods always return a result even if the user doesn ' t actually exist . This makes it seem like your request was successful when it really wasn ' t
def verify_user(username, &block)
        exists = summary(username: username)
        if exists[:success]
          yield
        else
          raise WhmInvalidUser, "User #{username} does not exist"
        end
      end
def verify_user ( username , & block ) exists = summary ( username : username ) if exists [ :success ] yield else raise WhmInvalidUser , "User #{username} does not exist" end end
Some WHM API methods always return a result, even if the user
doesn't actually exist.
Some WHM API methods always return a result even if the user doesn ' t actually exist .
username
block