aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/backends/terraform_aws_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/backends/terraform_aws_controller.rb')
-rw-r--r--app/controllers/backends/terraform_aws_controller.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/controllers/backends/terraform_aws_controller.rb b/app/controllers/backends/terraform_aws_controller.rb
index ab9b323..e5b66d4 100644
--- a/app/controllers/backends/terraform_aws_controller.rb
+++ b/app/controllers/backends/terraform_aws_controller.rb
@@ -65,6 +65,10 @@ class Backends::TerraformAwsController < ApplicationController
Backends::TerraformAwsJob.enqueue(@backend.id, :destroy_backend)
flash[:notice] = 'Destroying the backend'
+ when 'Stop'
+ Backends::TerraformAwsJob.enqueue(@backend.id, :stop_backend)
+
+ flash[:notice] = 'Stopping the backend'
when 'Deploy'
Backends::TerraformAwsJob.enqueue(@backend.id, :deploy_backend)