refactor: write DOKKU_SCALE contents to scale property

- remove extraction of DOKKU_SCALE
- migrate to property system
- rewrite internals to use a FormationSlice instead of a map
This commit is contained in:
Jose Diaz-Gonzalez
2021-08-01 17:47:04 -04:00
parent 8fc0cb67ec
commit 401683a305
6 changed files with 105 additions and 192 deletions

View File

@@ -55,7 +55,7 @@ EOF
assert_output "node worker.js"
}
@test "(ps:scale) update DOKKU_SCALE from Procfile" {
@test "(ps:scale) update formations from Procfile" {
local TMP=$(mktemp -d "/tmp/dokku.me.XXXXX")
trap 'popd &>/dev/null || true; rm -rf "$TMP"' INT TERM