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

Version Path
foreman_remote_execution-13.2.6 app/services/renderer_methods.rb
foreman_remote_execution-13.2.5 app/services/renderer_methods.rb
foreman_remote_execution-13.2.4 app/services/renderer_methods.rb
foreman_remote_execution-13.2.3 app/services/renderer_methods.rb
foreman_remote_execution-13.2.2 app/services/renderer_methods.rb
foreman_remote_execution-12.0.7 app/services/renderer_methods.rb
foreman_remote_execution-13.2.1 app/services/renderer_methods.rb
foreman_remote_execution-13.2.0 app/services/renderer_methods.rb
foreman_remote_execution-10.1.3 app/services/renderer_methods.rb
foreman_remote_execution-13.0.0 app/services/renderer_methods.rb
foreman_remote_execution-12.0.5 app/services/renderer_methods.rb
foreman_remote_execution-12.0.4 app/services/renderer_methods.rb
foreman_remote_execution-12.0.1 app/services/renderer_methods.rb
foreman_remote_execution-12.0.2 app/services/renderer_methods.rb
foreman_remote_execution-11.1.3 app/services/renderer_methods.rb
foreman_remote_execution-10.1.2 app/services/renderer_methods.rb
foreman_remote_execution-12.0.0 app/services/renderer_methods.rb
foreman_remote_execution-10.1.1 app/services/renderer_methods.rb
foreman_remote_execution-11.1.1 app/services/renderer_methods.rb
foreman_remote_execution-11.1.0 app/services/renderer_methods.rb