diff options
author | Christopher Baines <mail@cbaines.net> | 2018-06-23 22:05:06 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2018-06-23 22:05:06 +0100 |
commit | d0448444536721054748b98dbf84228b7a6c43da (patch) | |
tree | a1ad9a4e17ca644ca4cb82ef8f9280ba62909ca0 | |
parent | 636e4520ac3ddfa756d66ba4894c36eda89fb0a7 (diff) | |
download | govuk-mini-environment-admin-d0448444536721054748b98dbf84228b7a6c43da.tar govuk-mini-environment-admin-d0448444536721054748b98dbf84228b7a6c43da.tar.gz |
Specify titles for TerraformLibvirtJob jobs
-rw-r--r-- | app/jobs/backends/terraform_libvirt_job.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/jobs/backends/terraform_libvirt_job.rb b/app/jobs/backends/terraform_libvirt_job.rb index af8eba3..6a088b9 100644 --- a/app/jobs/backends/terraform_libvirt_job.rb +++ b/app/jobs/backends/terraform_libvirt_job.rb @@ -31,6 +31,10 @@ class Backends::TerraformLibvirtJob < Que::Job end end + def self.job_title(que_job) + que_job.args.last.titleize + end + def self.jobs(terraform_libvirt_backend_id) QueJob .where( |