Class: Ace::Git::Secrets::CLI::Commands::Rewrite
- Inherits:
-
Support::Cli::Command
- Object
- Support::Cli::Command
- Ace::Git::Secrets::CLI::Commands::Rewrite
- Includes:
- Support::Cli::Base
- Defined in:
- lib/ace/git/secrets/cli/commands/rewrite.rb
Overview
ace-support-cli command for rewriting Git history to remove tokens
Exit codes:
-
0: Success
-
1: Failure
-
2: Error occurred
Instance Method Summary collapse
Instance Method Details
#call(**options) ⇒ Object
30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/ace/git/secrets/cli/commands/rewrite.rb', line 30 def call(**) debug_log("Starting rewrite-history with options: #{format_pairs()}", ) exit_code = Ace::Git::Secrets::Commands::RewriteCommand.execute() raise Ace::Support::Cli::Error.new("Rewrite failed", exit_code: exit_code) if exit_code != 0 rescue Ace::Support::Cli::Error raise rescue => e debug_log(e., ) if debug?() raise Ace::Support::Cli::Error.new(e., exit_code: 2) end |