diff options
author | Christopher Baines <mail@cbaines.net> | 2018-06-24 09:58:10 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2018-06-24 09:58:10 +0100 |
commit | 2530d1abf4cbfd8ae0743b42c6ced5b44bd453ce (patch) | |
tree | f6b8260c0c278137f81f70d426c21f26110e480e /config | |
parent | f5024ad542f221e13882cc0c01985625e45f0f7c (diff) | |
download | govuk-mini-environment-admin-2530d1abf4cbfd8ae0743b42c6ced5b44bd453ce.tar govuk-mini-environment-admin-2530d1abf4cbfd8ae0743b42c6ced5b44bd453ce.tar.gz |
Add locking around all Terraform actions
To prevent them conflicting. Terraform itself has a locking mechanism,
which isn't being used, but this should be sufficient.
Diffstat (limited to 'config')
-rw-r--r-- | config/application.rb | 1 | ||||
-rw-r--r-- | config/boot.rb | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/config/application.rb b/config/application.rb index b78dfda..534981c 100644 --- a/config/application.rb +++ b/config/application.rb @@ -7,6 +7,7 @@ require 'govuk_admin_template' require 'plek' require 'web_console' if ENV['RAILS_ENV'] == 'development' +require 'with_advisory_lock' module GovukMiniEnvironmentAdmin class Application < Rails::Application diff --git a/config/boot.rb b/config/boot.rb index 48d7d8b..d620a68 100644 --- a/config/boot.rb +++ b/config/boot.rb @@ -10,4 +10,5 @@ gem 'gds-sso' gem 'plek' gem 'que' gem 'ruby-terraform' +gem 'with_advisory_lock' gem 'git' |