# File lib/api/right_flexiscale_api.rb, line 471
    def stop_server(server_name, method=:shutdown, notes='')
      perform_request do
        case method.to_s
        when 'shutdown', SERVER_STOP_SHUTDOWN.to_s then @api.stopServer(server_name, SERVER_STOP_SHUTDOWN, notes)
        when 'poweroff', SERVER_STOP_POWEROFF.to_s then @api.stopServer(server_name, SERVER_STOP_POWEROFF, notes)
        end
      end
    end