aboutsummaryrefslogtreecommitdiff
path: root/lib
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 /lib
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 'lib')
-rw-r--r--lib/tasks/backend.rake14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/tasks/backend.rake b/lib/tasks/backend.rake
index c23a3df..19dc462 100644
--- a/lib/tasks/backend.rake
+++ b/lib/tasks/backend.rake
@@ -6,6 +6,13 @@ namespace :backend do
.find(args.backend_id)
.deploy_backend
end
+
+ desc 'Update GC Roots'
+ task :update_guix_gcroots, [:backend_id] => :environment do |t, args|
+ Backends::TerraformAws
+ .find(args.backend_id)
+ .update_guix_gcroots
+ end
end
namespace :terraform_aws do
@@ -22,5 +29,12 @@ namespace :backend do
.find(args.backend_id)
.destroy_backend
end
+
+ desc 'Update GC Roots'
+ task :update_guix_gcroots, [:backend_id] => :environment do |t, args|
+ Backends::TerraformAws
+ .find(args.backend_id)
+ .update_guix_gcroots
+ end
end
end