def shutdown(): Utility.stopWakeup() Utility.stopTwisted() Utility.stopRepository(view) Utility.stopCrypto(Globals.options.profileDir)
def shutdown(): Utility.stopWakeup() Utility.stopTwisted() Utility.stopRepository(view, commitOnExit) Utility.stopCrypto(Globals.options.profileDir)
parcelPath = Utility.initParcelEnv(Globals.options, Globals.chandlerDirectory) pluginEnv, pluginEggs = Utility.initPluginEnv(Globals.options, Globals.options.pluginPath) view = Utility.initRepository(profileDir, Globals.options) verify, repoVersion, schemaVersion = Utility.verifySchema(view) Utility.initCrypto(Globals.options.profileDir) Utility.initParcels(Globals.options, view, parcelPath) Utility.initPlugins(Globals.options, view, pluginEnv, pluginEggs) Utility.initTimezone(Globals.options, view) outputDir = os.path.join(Globals.chandlerDirectory, 'docs') if os.path.isfile('Chandler.py'): if not os.path.isdir(outputDir): _mkdirs(outputDir) generateModelDocs(Globals.chandlerDirectory, view, outputDir) generateDocs(outputDir) else: print "Error: Currently gen_docs.py assumes it is running in the chandler/ directory" Utility.stopWakeup() Utility.stopTwisted() Utility.stopRepository(view, False) Utility.stopCrypto(Globals.options.profileDir)