Module: ForemanRemoteExecution::RendererMethods
- Extended by:
- ActiveSupport::Concern
- Defined in:
- app/lib/foreman_remote_execution/renderer_methods.rb
Instance Method Summary collapse
Instance Method Details
#find_job_invocation_by_id(job_id, preload: nil) ⇒ Object
8 9 10 11 12 |
# File 'app/lib/foreman_remote_execution/renderer_methods.rb', line 8 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 |