Class: Ace::Assign::CLI::Commands::Fail
- Inherits:
-
Support::Cli::Command
- Object
- Support::Cli::Command
- Ace::Assign::CLI::Commands::Fail
- Includes:
- AssignmentTarget, Support::Cli::Base
- Defined in:
- lib/ace/assign/cli/commands/fail.rb
Overview
Mark current step as failed
Instance Method Summary collapse
Instance Method Details
#call(**options) ⇒ Object
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
# File 'lib/ace/assign/cli/commands/fail.rb', line 19 def call(**) = [:message] target = resolve_assignment_target() executor = build_executor_for_target(target) result = executor.fail() unless [:quiet] failed = result[:failed] puts "Step #{failed.number} (#{failed.name}) marked as failed" puts "Updated: #{File.basename(failed.file_path)}" puts "Error: #{}" puts puts "Options:" puts "- ace-assign add \"fix-step\" to add a fix step" puts "- ace-assign retry #{failed.number} to retry this step" end end |