def UpdateDos(self):
    if self.args:
      self.parser.error('Expected a single <directory> argument.')

    appyaml = self._ParseAppInfoFromYaml(self.basepath)
    rpcserver = self._GetRpcServer()


    dos_yaml = self._ParseDosYaml(self.basepath)
    if dos_yaml:
      dos_upload = DosEntryUpload(rpcserver, appyaml, dos_yaml)
      dos_upload.DoUpload()
    else:
      print >>sys.stderr, 'Could not find dos configuration. No action taken.'
Updates any new or changed dos definitions.
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/tools/appcfg.py/AppCfgApp.UpdateDos