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-8.1.1 app/services/renderer_methods.rb
foreman_remote_execution-8.1.0 app/services/renderer_methods.rb
foreman_remote_execution-7.2.2 app/services/renderer_methods.rb
foreman_remote_execution-7.2.1 app/services/renderer_methods.rb
foreman_remote_execution-7.2.0 app/services/renderer_methods.rb
foreman_remote_execution-5.0.8 app/services/renderer_methods.rb
foreman_remote_execution-8.0.0 app/services/renderer_methods.rb
foreman_remote_execution-7.1.1 app/services/renderer_methods.rb
foreman_remote_execution-7.1.0 app/services/renderer_methods.rb
foreman_remote_execution-7.0.0 app/services/renderer_methods.rb
foreman_remote_execution-5.0.7 app/services/renderer_methods.rb
foreman_remote_execution-5.0.6 app/services/renderer_methods.rb
foreman_remote_execution-6.2.0 app/services/renderer_methods.rb
foreman_remote_execution-5.0.5 app/services/renderer_methods.rb
foreman_remote_execution-6.1.0 app/services/renderer_methods.rb
foreman_remote_execution-5.0.4 app/services/renderer_methods.rb
foreman_remote_execution-5.0.3 app/services/renderer_methods.rb
foreman_remote_execution-6.0.0 app/services/renderer_methods.rb
foreman_remote_execution-5.0.2 app/services/renderer_methods.rb
foreman_remote_execution-5.1.0 app/services/renderer_methods.rb