44const _ = require ( 'lodash' ) ;
55const hasher = require ( 'object-hash' ) ;
66const path = require ( 'path' ) ;
7+ // eslint-disable-next-line no-redeclare
78const Promise = require ( './promise' ) ;
89const utils = require ( './utils' ) ;
910
@@ -153,7 +154,7 @@ module.exports = class App {
153154 // do stuff with them later
154155 this . warnings = [ ] ;
155156 this . id = hasher ( `${ this . name } -${ this . root } ` ) ;
156- } ;
157+ }
157158
158159 /*
159160 * @TODO , add compose data to the add
@@ -227,7 +228,7 @@ module.exports = class App {
227228 */
228229 . then ( ( ) => this . events . emit ( 'post-destroy' ) )
229230 . then ( ( ) => this . log . info ( 'destroyed app.' ) ) ;
230- } ;
231+ }
231232
232233 /**
233234 * Initializes the app
@@ -308,7 +309,7 @@ module.exports = class App {
308309 * @property {App } app The app instance.
309310 */
310311 . then ( ( ) => this . events . emit ( 'ready' , this ) ) ;
311- } ;
312+ }
312313
313314 /**
314315 * Rebuilds an app.
@@ -358,14 +359,14 @@ module.exports = class App {
358359 */
359360 . then ( ( ) => this . events . emit ( 'post-rebuild' ) )
360361 . then ( ( ) => this . log . info ( 'rebuilt app.' ) ) ;
361- } ;
362+ }
362363
363364 /*
364365 * @TODO
365366 */
366367 reset ( ) {
367368 this . initialized = false ;
368- } ;
369+ }
369370
370371 /**
371372 * Stops and then starts an app.
@@ -388,7 +389,7 @@ module.exports = class App {
388389 return this . stop ( )
389390 . then ( ( ) => this . start ( ) )
390391 . then ( ( ) => this . log . info ( 'restarted app.' ) ) ;
391- } ;
392+ }
392393
393394 /**
394395 * Starts an app.
@@ -434,7 +435,7 @@ module.exports = class App {
434435 */
435436 . then ( ( ) => this . events . emit ( 'post-start' ) )
436437 . then ( ( ) => this . log . info ( 'started app.' ) ) ;
437- } ;
438+ }
438439
439440 /**
440441 * Stops an app.
@@ -473,7 +474,7 @@ module.exports = class App {
473474 */
474475 . then ( ( ) => this . events . emit ( 'post-stop' ) )
475476 . then ( ( ) => this . log . info ( 'stopped app.' ) ) ;
476- } ;
477+ }
477478
478479 /**
479480 * Soft removes the apps services but maintains persistent data like app volumes.
@@ -521,14 +522,14 @@ module.exports = class App {
521522 */
522523 . then ( ( ) => this . events . emit ( 'post-uninstall' ) )
523524 . then ( ( ) => this . log . info ( 'uninstalled app.' ) ) ;
524- } ;
525+ }
525526
526527 getServiceContainerId ( service ) {
527528 return `${ this . project } -${ service } -1` ;
528- } ;
529+ }
529530
530531 getServiceFromContainerId ( id ) {
531532 const regex = new RegExp ( `${ this . project } -(.*)-1` ) ;
532533 return id . replace ( regex , '$1' ) ;
533- } ;
534+ }
534535} ;
0 commit comments