Method: Spinach::Auditor#run

Defined in:
lib/spinach/auditor.rb

#runObject

audits features



21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# File 'lib/spinach/auditor.rb', line 21

def run
  require_dependencies

  # Find any missing steps in each file, and keep track of unused steps
  clean = true
  filenames.each do |file|
    result = audit_file(file)
    clean &&= result # set to false if any result is false
  end

  # At the end, report any unused steps
  report_unused_steps

  # If the audit was clean, make sure the user knows
  puts "\nAudit clean - no missing steps.".colorize(:light_green) if clean

  true
end