Method: Cure::Planner#print_extract_plan

Defined in:
lib/cure/planner.rb

rubocop:disable Metrics/AbcSize



43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# File 'lib/cure/planner.rb', line 43

def print_extract_plan # rubocop:disable Metrics/AbcSize
  print_title "Extract"
  named_ranges = config.template.extraction.named_ranges
  variables = config.template.extraction.variables

  if named_ranges.empty?
    print_empty(named_ranges, "If you wanted to add a named range, please read docs/extraction.md")
  else
    log_info("[#{named_ranges.length}] named ranges specified")
    named_ranges.each do |nr|
      log_info "-- #{nr.name} will extract values from #{nr.section}"
    end
  end

  print_spacer

  if variables.empty?
    print_empty("variables")
  else
    log_info("[#{variables.length}] variables specified")
    variables.each do |v|
      log_info "-- #{v.name} will extract from #{v.location}"
    end
  end

  print_spacer
end