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 f11403f..004f601 100644
--- a/app/controllers/backends/terraform_aws_controller.rb
+++ b/app/controllers/backends/terraform_aws_controller.rb
@@ -69,6 +69,10 @@ class Backends::TerraformAwsController < ApplicationController
Backends::TerraformAwsJob.enqueue(@backend.id, :deploy_backend)
flash[:notice] = 'Deploying the backend'
+ when 'Refresh state'
+ Backends::TerraformAwsJob.enqueue(@backend.id, :refresh_backend_state)
+
+ flash[:notice] = 'Refreshing the backend state information'
else
flash[:error] = "Unknown action #{action}"
end