Class: Ace::Git::Secrets::CLI::Commands::CheckRelease
- Inherits:
-
Support::Cli::Command
- Object
- Support::Cli::Command
- Ace::Git::Secrets::CLI::Commands::CheckRelease
- Includes:
- Support::Cli::Base
- Defined in:
- lib/ace/git/secrets/cli/commands/check_release.rb
Overview
ace-support-cli command for pre-release security check
Exit codes:
-
0: Passed (no tokens detected)
-
1: Failed (tokens detected)
-
2: Error occurred
Instance Method Summary collapse
Instance Method Details
#call(**options) ⇒ Object
26 27 28 29 30 31 32 33 34 35 |
# File 'lib/ace/git/secrets/cli/commands/check_release.rb', line 26 def call(**) debug_log("Starting check-release with options: #{format_pairs()}", ) # Delegate to existing CheckReleaseCommand logic exit_code = Ace::Git::Secrets::Commands::CheckReleaseCommand.execute() raise Ace::Support::Cli::Error.new("Pre-release check failed", exit_code: exit_code) if exit_code != 0 rescue => e debug_log(e., ) if debug?() raise Ace::Support::Cli::Error.new(e.) end |