Implement repo:gc and repo:purge-cache

These are helper plugins that mimic the repo plugin: https://github.com/heroku/heroku-repo

The following commands will remain unimplemented:

- `clone`: not useful for the host client to clone
- `download`: currently not possible for us to "host" a tarball of the repo
- `reset`: we still store files in the repo (though we shouldn't) so we cannot easily reinitialize the repository.

Also fixes a potential race condition if two separate processes create an application's `$CACHE_DIR`.

Closes #1570
This commit is contained in:
Jose Diaz-Gonzalez
2016-03-30 02:38:29 -04:00
committed by Michael Hobbs
parent 0c58aeaa52
commit 2c1f32199a
5 changed files with 71 additions and 1 deletions

4
plugins/repo/plugin.toml Normal file
View File

@@ -0,0 +1,4 @@
[plugin]
description = "dokku core repo plugin"
version = "0.5.3"
[plugin.config]