Add UnpackState and DownloadState

This commit is contained in:
garrettmills
2020-03-03 16:10:10 -06:00
parent 10bded1681
commit 2725f9eac2
8 changed files with 140 additions and 2 deletions

View File

@@ -13,14 +13,14 @@ class StatesService extends Service {
static #state_map = {
// TODO apache and nginx states - virtual host, reverse proxy
// TODO file/directory permissions state - chmod & chown
// TODO file download state
// TODO file unpack state - zips, tarballs
// TODO file pack state - zip, tarball
// TODO package repository states - import keys, install repository
// TODO service manager states - service enabled, service installed
// TODO git states - clone repo, ref checked out
'fs.file': require('../classes/state/fs/FileState'),
'fs.directory': require('../classes/state/fs/DirectoryState'),
'fs.unpack': require('../classes/state/fs/UnpackState'),
'package.present': require('../classes/state/os/PackageState'),
'package.updates': require('../classes/state/os/UpdateState'),
@@ -29,6 +29,8 @@ class StatesService extends Service {
'service.running': require('../classes/state/os/ServiceState'),
'service.restarted': require('../classes/state/os/ServiceRestartState'),
'service.daemon.reloaded': require('../classes/state/os/ServiceDaemonReloadState'),
'web.download': require('../classes/state/fs/DownloadState'),
}
static get services() {