Method: CommitMeat.run

Defined in:
lib/commit-meat.rb

.runObject



10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/commit-meat.rb', line 10

def self.run
  tester = Tester.new(commit_message)
  tester.test

  if tester.has_failures? || tester.has_warnings?
    puts "There's NO MEAT - did not commit.".magenta.bold
    tester.warning_messages.each { |message| puts message.yellow }
    tester.failure_messages.each { |message| puts message.red }
  end

  stop_commit if tester.has_failures?
end