aboutsummaryrefslogtreecommitdiff
path: root/app/services
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2018-06-23 09:26:52 +0100
committerChristopher Baines <mail@cbaines.net>2018-06-23 12:58:05 +0100
commit0736fd5ab32eeb57de52fb6d581d16c2824b2fc2 (patch)
tree6ed6e54772a6e23a047942e8be7d1ff114949f3d /app/services
parentb6c1930ffe65afbbccf1252ca084a932d19c2d64 (diff)
downloadgovuk-mini-environment-admin-0736fd5ab32eeb57de52fb6d581d16c2824b2fc2.tar
govuk-mini-environment-admin-0736fd5ab32eeb57de52fb6d581d16c2824b2fc2.tar.gz
Add a Guix module
Which contains an available_locally? function.
Diffstat (limited to 'app/services')
-rw-r--r--app/services/govuk_guix/build_mini_environment.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/govuk_guix/build_mini_environment.rb b/app/services/govuk_guix/build_mini_environment.rb
index 6de6b81..9bce8b5 100644
--- a/app/services/govuk_guix/build_mini_environment.rb
+++ b/app/services/govuk_guix/build_mini_environment.rb
@@ -36,7 +36,7 @@ module GovukGuix::BuildMiniEnvironment
remote_host = options[:run_remotely_on_host]
- if remote_host && File.exist?('/var/guix/daemon-socket/socket')
+ if remote_host && Guix.available_locally?
# Copy the revision to the remote host, to ensure it's available
# there
run_command(