aboutsummaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2018-06-22 07:34:07 +0100
committerChristopher Baines <mail@cbaines.net>2018-06-22 07:34:07 +0100
commit1fcb11bb31d0ffbf37de3ce704231bdcdaf787ca (patch)
treecd8f0c90a9e1f58455c27c3f60f0afc1c2387c1a /app/models
parent3f2561ef31851f43e9270679eb23304007aadd67 (diff)
downloadgovuk-mini-environment-admin-1fcb11bb31d0ffbf37de3ce704231bdcdaf787ca.tar
govuk-mini-environment-admin-1fcb11bb31d0ffbf37de3ce704231bdcdaf787ca.tar.gz
Replace the GovukGuix::BuildJob
With a service that performs the same function, and use the MiniEnvironmentJob instead.
Diffstat (limited to 'app/models')
-rw-r--r--app/models/backends/terraform_aws.rb2
-rw-r--r--app/models/backends/terraform_libvirt/mini_environment_methods.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/models/backends/terraform_aws.rb b/app/models/backends/terraform_aws.rb
index db8d6cd..1f16188 100644
--- a/app/models/backends/terraform_aws.rb
+++ b/app/models/backends/terraform_aws.rb
@@ -52,7 +52,7 @@ class Backends::TerraformAws < ApplicationRecord
def build(mini_environment)
slug = mini_environment.name.parameterize
- GovukGuix::BuildJob.enqueue(
+ GovukGuix::BuildMiniEnvironment.build(
mini_environment.id,
services: mini_environment.services.map(&:build_argument_string),
arguments: {
diff --git a/app/models/backends/terraform_libvirt/mini_environment_methods.rb b/app/models/backends/terraform_libvirt/mini_environment_methods.rb
index c931a5d..4ed8835 100644
--- a/app/models/backends/terraform_libvirt/mini_environment_methods.rb
+++ b/app/models/backends/terraform_libvirt/mini_environment_methods.rb
@@ -22,7 +22,7 @@ module Backends::TerraformLibvirt::MiniEnvironmentMethods
def build(mini_environment)
slug = mini_environment.name.parameterize
- GovukGuix::BuildJob.enqueue(
+ GovukGuix::BuildMiniEnvironment.build(
mini_environment.id,
services: mini_environment.services.map(&:build_argument_string),
arguments: {