diff options
author | Christopher Baines <mail@cbaines.net> | 2018-05-03 21:51:31 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2018-05-03 21:51:31 +0100 |
commit | 4eb5c0f4703671d81a2a4b536282f2be4169dac8 (patch) | |
tree | de4d547b0f1dff9c87101df790164a4f62d57372 /lib/tasks | |
parent | fbe5d8c0b948606fbadc35f3f03635b212644490 (diff) | |
download | govuk-mini-environment-admin-4eb5c0f4703671d81a2a4b536282f2be4169dac8.tar govuk-mini-environment-admin-4eb5c0f4703671d81a2a4b536282f2be4169dac8.tar.gz |
Add a rake task to deploy backends
Diffstat (limited to 'lib/tasks')
-rw-r--r-- | lib/tasks/backend.rake | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/tasks/backend.rake b/lib/tasks/backend.rake new file mode 100644 index 0000000..b2db905 --- /dev/null +++ b/lib/tasks/backend.rake @@ -0,0 +1,19 @@ +namespace :backend do + namespace :terraform_libvirt do + desc 'Deploy a Terraform libvirt backend' + task :deploy, [:backend_id] => :environment do |t, args| + Backends::TerraformLibvirt + .find(args.backend_id) + .deploy_backend + end + end + + namespace :terraform_aws do + desc 'Deploy a Terraform AWS backend' + task :deploy, [:backend_id] => :environment do |t, args| + Backends::TerraformAws + .find(args.backend_id) + .deploy_backend + end + end +end |