Method: Tailor::CLI#execute!

Defined in:
lib/tailor/cli.rb

#execute!Boolean

This checks all of the files detected during the configuration gathering process, then hands results over to the Reporter to be reported.

Returns:

  • (Boolean)

    true if no problems were detected; false if there were.



45
46
47
48
49
50
51
52
53
54
# File 'lib/tailor/cli.rb', line 45

def execute!
  @critic.critique(@configuration.file_sets) do |problems_for_file, label|
    @reporter.file_report(problems_for_file, label)
  end

  @reporter.summary_report(@critic.problems,
    output_file: @configuration.output_file)

  @critic.problem_count(:error) > 0
end