diff options
| author | Stanley Yip <stanley_yip@brown.edu> | 2020-02-12 21:54:58 -0500 | 
|---|---|---|
| committer | Stanley Yip <stanley_yip@brown.edu> | 2020-02-12 21:54:58 -0500 | 
| commit | a8b19e82d8c9a8350609e64e60848dbfbbbb6dcd (patch) | |
| tree | 35d1e015a4b6f4913f162faec50c79c36e402350 /src/server/DashSession | |
| parent | 33d5a12af14e1ed50e5c3164b363fbbc253506a0 (diff) | |
| parent | 864cba561db8e26240b093da7ab524e76c8823d1 (diff) | |
merge
Diffstat (limited to 'src/server/DashSession')
| -rw-r--r-- | src/server/DashSession/DashSessionAgent.ts | 21 | 
1 files changed, 12 insertions, 9 deletions
| diff --git a/src/server/DashSession/DashSessionAgent.ts b/src/server/DashSession/DashSessionAgent.ts index c55e01243..c74b50555 100644 --- a/src/server/DashSession/DashSessionAgent.ts +++ b/src/server/DashSession/DashSessionAgent.ts @@ -25,15 +25,18 @@ export class DashSessionAgent extends AppliedSessionAgent {       * The core method invoked when the single master thread is initialized.       * Installs event hooks, repl commands and additional IPC listeners.       */ -    protected async initializeMonitor(monitor: Monitor, sessionKey: string): Promise<void> { -        await this.dispatchSessionPassword(sessionKey); -        monitor.addReplCommand("pull", [], () => monitor.exec("git pull")); -        monitor.addReplCommand("solr", [/start|stop|index/], this.executeSolrCommand); -        monitor.addReplCommand("backup", [], this.backup); -        monitor.addReplCommand("debug", [/\S+\@\S+/], async ([to]) => this.dispatchZippedDebugBackup(to)); -        monitor.on("backup", this.backup); -        monitor.on("debug", async ({ to }) => this.dispatchZippedDebugBackup(to)); -        monitor.coreHooks.onCrashDetected(this.dispatchCrashReport); +    // protected async initializeMonitor(monitor: Monitor, sessionKey: string): Promise<void> { +    protected async initializeMonitor(monitor: Monitor): Promise<void> { + +        // await this.dispatchSessionPassword(sessionKey); +        // monitor.addReplCommand("pull", [], () => monitor.exec("git pull")); +        // monitor.addReplCommand("solr", [/start|stop|index/], this.executeSolrCommand); +        // monitor.addReplCommand("backup", [], this.backup); +        // monitor.addReplCommand("debug", [/\S+\@\S+/], async ([to]) => this.dispatchZippedDebugBackup(to)); +        // monitor.on("backup", this.backup); +        // monitor.on("debug", async ({ to }) => this.dispatchZippedDebugBackup(to)); +        // monitor.coreHooks.onCrashDetected(this.dispatchCrashReport); +        return;      }      /** | 
