diff options
-rw-r--r-- | app/jobs/govuk_guix/fetch_revision_job.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/app/jobs/govuk_guix/fetch_revision_job.rb b/app/jobs/govuk_guix/fetch_revision_job.rb index 42177ff..afbff71 100644 --- a/app/jobs/govuk_guix/fetch_revision_job.rb +++ b/app/jobs/govuk_guix/fetch_revision_job.rb @@ -54,7 +54,7 @@ class GovukGuix::FetchRevisionJob < Que::Job GovukGuix::Revision.create( commit_hash: sha, store_path: store_path, - available_services: available_services(store_path) + available_services: available_services(store_path, remote_host) ) end @@ -112,12 +112,13 @@ class GovukGuix::FetchRevisionJob < Que::Job return sha end - def available_services(store_path) + def available_services(store_path, remote_host) command_output = run_command( "#{store_path}/bin/govuk", "system", "available-services", - "--json" + "--json", + run_remotely_on_host: remote_host ) json_start = command_output.find_index { |line| line.starts_with?('[') } |