-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #37453 - Support Zeitwerk loader
- Loading branch information
1 parent
685cad0
commit a6e2bfc
Showing
6 changed files
with
265 additions
and
264 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# frozen_string_literal: true | ||
|
||
# macros to fetch information about invoked jobs | ||
module ForemanRemoteExecution | ||
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 | ||
end |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Rails.autoloaders.each do |autoloader| | ||
autoloader.inflector.inflect( | ||
'ssh_execution_provider' => 'SSHExecutionProvider', | ||
'remote_execution_ssh' => 'RemoteExecutionSSH' | ||
) | ||
end |
Oops, something went wrong.