aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/backends/terraform_libvirt_controller.rb
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2018-12-31 18:22:12 +0000
committerChristopher Baines <mail@cbaines.net>2019-01-01 02:38:23 +0000
commit3459059ed1f9332a9e71a4a7be5dc5e22e7f6bae (patch)
tree477f63fbc4546ee2947f571b831fb9463e2025b2 /app/controllers/backends/terraform_libvirt_controller.rb
parent3e78356904b610aa149dd2e2c30e832408f37acc (diff)
downloadgovuk-mini-environment-admin-3459059ed1f9332a9e71a4a7be5dc5e22e7f6bae.tar
govuk-mini-environment-admin-3459059ed1f9332a9e71a4a7be5dc5e22e7f6bae.tar.gz
Start tracking which store paths are in use
This will enable garbage collection of the Guix store, without removing things that are still in use.
Diffstat (limited to 'app/controllers/backends/terraform_libvirt_controller.rb')
-rw-r--r--app/controllers/backends/terraform_libvirt_controller.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/controllers/backends/terraform_libvirt_controller.rb b/app/controllers/backends/terraform_libvirt_controller.rb
index 4421146..1bf37cd 100644
--- a/app/controllers/backends/terraform_libvirt_controller.rb
+++ b/app/controllers/backends/terraform_libvirt_controller.rb
@@ -82,6 +82,10 @@ class Backends::TerraformLibvirtController < ApplicationController
redirect_to terraform_libvirt_backend_path(@backend)
end
+ def in_use_store_paths
+ @backend = Backends::TerraformLibvirt.find(params['id'])
+ end
+
private
def create_params