Prepare for first package
This commit is contained in:
@@ -4,7 +4,7 @@ const RemoteHost = require('../classes/metal/RemoteHost')
|
||||
|
||||
class hosts extends Service {
|
||||
static get services() {
|
||||
return [...super.services, 'configs']
|
||||
return [...super.services, 'configs', 'app']
|
||||
}
|
||||
|
||||
_running_hosts = []
|
||||
@@ -21,11 +21,11 @@ class hosts extends Service {
|
||||
}
|
||||
|
||||
if ( config.type === 'localhost' ) {
|
||||
const host = new LocalHost(config)
|
||||
const host = this.app.di().make(LocalHost, config)
|
||||
this._running_hosts.push(host)
|
||||
return host
|
||||
} else if ( config.type === 'ssh' ) {
|
||||
const host = new RemoteHost(config)
|
||||
const host = this.app.di().make(RemoteHost, config)
|
||||
this._running_hosts.push(host)
|
||||
return host
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user