'Updates indexes.'

def UpdateIndexes(self):

    if self.args:
        self.parser.error('Expected    a    single    <directory>    argument.')
    rpcserver = self._GetRpcServer()
    index_defs = self._ParseIndexYaml(self.basepath)
    if index_defs:
        index_upload = IndexDefinitionUpload(rpcserver, index_defs, self.error_fh)
        index_upload.DoUpload()
    else:
        print >>self.error_fh, 'Could    not    find    index    configuration.    No    action    taken.'
