Class: Renegade::Status

Inherits:
Object
  • Object
show all
Defined in:
lib/renegade/status.rb

Overview

Report statuses

Class Method Summary collapse

Class Method Details

.hook_start(hook) ⇒ Object



40
41
42
# File 'lib/renegade/status.rb', line 40

def self.hook_start(hook)
  puts "\n" + "Running #{hook} hooks…".status
end

.report(label, passed, warning = nil) ⇒ Object

Report labels



30
31
32
33
34
35
36
37
38
# File 'lib/renegade/status.rb', line 30

def self.report(label, passed, warning = nil)
  if passed
    puts label.success
  elsif warning
    puts label.warning
  else
    puts label.error
  end
end