From d0448444536721054748b98dbf84228b7a6c43da Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Sat, 23 Jun 2018 22:05:06 +0100 Subject: Specify titles for TerraformLibvirtJob jobs --- app/jobs/backends/terraform_libvirt_job.rb | 4 ++++ 1 file changed, 4 insertions(+) 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( -- cgit v1.2.3