aboutsummaryrefslogtreecommitdiff
path: root/app/jobs/govuk_guix/job.rb
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2018-05-03 21:44:06 +0100
committerChristopher Baines <mail@cbaines.net>2018-05-03 21:44:06 +0100
commitfc1e5260603ff0f6030c4aed7874c8ea3b532e5c (patch)
treef2ae0482f4d60bb0a76328cee0c03dece172bb9d /app/jobs/govuk_guix/job.rb
parent807c10c5652423be96d125a502be222aa8d80119 (diff)
downloadgovuk-mini-environment-admin-fc1e5260603ff0f6030c4aed7874c8ea3b532e5c.tar
govuk-mini-environment-admin-fc1e5260603ff0f6030c4aed7874c8ea3b532e5c.tar.gz
Improve the AWS backend
This gets the AWS backend to the point where you can deploy the backend, and then a mini environment without any actions outside of the govuk-mini-environment-admin.
Diffstat (limited to 'app/jobs/govuk_guix/job.rb')
-rw-r--r--app/jobs/govuk_guix/job.rb8
1 files changed, 5 insertions, 3 deletions
diff --git a/app/jobs/govuk_guix/job.rb b/app/jobs/govuk_guix/job.rb
index c20b9de..b79d380 100644
--- a/app/jobs/govuk_guix/job.rb
+++ b/app/jobs/govuk_guix/job.rb
@@ -46,12 +46,14 @@ class GovukGuix::Job < Que::Job
def hash_to_arguments(hash)
hash.map do |(key, value)|
- transfomed_key = key.tr('_', '-')
+ transformed_key = key.tr('_', '-')
if value == true
- "--#{transfomed_key}"
+ "--#{transformed_key}"
+ elsif value.include? ' '
+ "--#{transformed_key}='#{value}'"
else
- "--#{transfomed_key}=#{value}"
+ "--#{transformed_key}=#{value}"
end
end
end