Project

General

Profile

« Previous | Next » 

Revision 9e6a344c

Added by Kavita Gaikwad over 3 years ago

Refs #25291 - remove dead code

View differences:

lib/foreman_maintain/reporter.rb
end
# simple yes/no question, returns :yes, :no or :quit
# rubocop:disable Metrics/LineLength
def ask_decision(message, actions_msg: 'y(yes), n(no), q(quit)', assumeyes: assumeyes?, run_strategy: :fail_fast)
actions_msg = 'y(yes), n(no)' if run_strategy == :fail_slow
if assumeyes
......
filter_decision(ask("#{message}, [#{actions_msg}]"))
end
end
# rubocop:enable Metrics/LineLength
def assumeyes=(assume)
@assumeyes = !!assume
......
steps.each_with_index do |step, index|
puts "#{index + 1}) #{step.description}"
end
ask_to_select('Select step to continue', steps, run_strategy, &:description)
ask_to_select('Select step to continue', steps, run_strategy)
end
def filter_decision(answer)
lib/foreman_maintain/reporter/cli_reporter.rb
steps.each_with_index do |step, index|
puts "#{index + 1}) #{step.runtime_message}"
end
ask_to_select('Select step to continue', steps, run_strategy, &:runtime_message)
ask_to_select('Select step to continue', steps, run_strategy)
end
# rubocop:disable Metrics/LineLength
def ask_decision(message, actions_msg: 'y(yes), n(no), q(quit)', ignore_assumeyes: false, run_strategy: :fail_fast)
actions_msg = 'y(yes), n(no)' if run_strategy == :fail_slow
if !ignore_assumeyes && assumeyes?
......
ensure
clear_line
end
# rubocop:enable Metrics/LineLength
def filter_decision(answer)
decision = nil
......
# rubocop:disable Metrics/MethodLength, Metrics/AbcSize
def scenario_failure_message(scenario)
return if scenario.passed? && !scenario.warning?
message = []
message << <<-MESSAGE.strip_heredoc
Scenario [#{scenario.description}] failed.

Also available in: Unified diff