blob: a080ba9aa96abbcc1ef99cfe2110d8f871dea6c0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
namespace :data_snapshots do
namespace :terraform_libvirt do
desc 'Create a new data snapshot for a libvirt backend'
task create: :environment do
GovukGuix::CreateDataSnapshotJob.enqueue
end
end
namespace :terraform_aws do
desc 'Create a new data snapshot for a libvirt backend'
task :create, [:backend_id] => :environment do |t, args|
Backends::TerraformAws
.find(args.backend_id)
.create_data_snapshot
end
end
end
|