forked from joakimk/pipeline
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3f13a00
commit 8e5fc7f
Showing
10 changed files
with
386 additions
and
45 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,39 @@ | ||
#!/usr/bin/env ruby | ||
APP_PATH = File.expand_path("../config/application", __dir__) | ||
require_relative "../config/boot" | ||
|
||
# Auctionet monkeypatch | ||
# Inspired by: https://github.com/rails/rails/issues/50220 | ||
require "rails/command" | ||
require "rails/commands/rake/rake_command" | ||
module Rails | ||
module Command | ||
class RakeCommand < Base | ||
class << self | ||
def perform(task, args, config) | ||
retried = false | ||
with_rake(task, *args) do |rake| | ||
begin # Auctionet: We want to catch UnrecognizedCommandError, once. | ||
if unrecognized_task = rake.top_level_tasks.find { |task| !rake.lookup(task[/[^\[]+/]) } | ||
@rake_tasks = rake.tasks | ||
raise UnrecognizedCommandError.new(unrecognized_task) | ||
end | ||
rescue UnrecognizedCommandError | ||
raise if retried | ||
|
||
retried = true | ||
RailslessRakeTaskRunner.load_rails # Auctionet: This hooks in to the existing fall back to load it all. | ||
retry | ||
end | ||
|
||
rake.options.suppress_backtrace_pattern = non_app_file_pattern | ||
rake.standard_exception_handling { rake.top_level } | ||
end | ||
end | ||
end | ||
end | ||
end | ||
end | ||
# END of Auctionet monkeypatch | ||
|
||
require "rails/commands" |
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
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
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
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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
# Be sure to restart your server when you modify this file. | ||
|
||
# Configure parameters to be filtered from the log file. Use this to limit dissemination of | ||
# sensitive information. See the ActiveSupport::ParameterFilter documentation for supported | ||
# notations and behaviors. | ||
# Configure parameters to be partially matched (e.g. passw matches password) and filtered from the log file. | ||
# Use this to limit dissemination of sensitive information. | ||
# See the ActiveSupport::ParameterFilter documentation for supported notations and behaviors. | ||
Rails.application.config.filter_parameters += [ | ||
:password, :passw, :secret, :token, :_key, :crypt, :salt, :certificate, :otp, :ssn, | ||
:passw, :secret, :token, :_key, :crypt, :salt, :certificate, :otp, :ssn | ||
] |
Oops, something went wrong.