Sha256: b18b635e8c82957cf8d9e97f2d8ba87ce64f670d58f48085d05fe0c04b24d7a6
Contents?: true
Size: 382 Bytes
Versions: 73
Compression:
Stored size: 382 Bytes
Contents
# frozen_string_literal: true # macros to fetch information about invoked jobs module RendererMethods extend ActiveSupport::Concern def find_job_invocation_by_id(job_id, preload: nil) JobInvocation.preload(preload).find_by(id: job_id) rescue ActiveRecord::NotFound => _e raise ::Foreman::Exception.new(N_("Can't find Job Invocation for an id %s"), job_id) end end
Version data entries
73 entries across 73 versions & 1 rubygems