lib/health_inspector/color.rb
# TODO: Use a highline color scheme here instead
Use a highline color scheme here instead
Use a highline color scheme here instead
def color(type, str)
      colors = {
        'pass'          => [:green],
        'fail'          => [:red],
        'bright pass'   => [:bold, :green],
        'bright fail'   => [:bold, :red],
        'bright yellow' => [:bold, :yellow],
        'pending'       => [:yellow],
        'suite'         => [],
        'error title'   => [],
        'error message' => [:red],
        'error stack'   => [:green],
        'checkmark'     => [:green],
        'fast'          => [:green],
        'medium'        => [:green],
        'slow'          => [:red],
        'green'         => [:green],
        'light'         => [:green],
        'diff gutter'   => [:green],
        'diff added'    => [:green],
        'diff removed'  => [:red]
      }
      @context.knife.ui.color( str, *colors[type] )
    end
def color ( type , str ) colors = { 'pass' => [ :green ] , 'fail' => [ :red ] , 'bright pass' => [ :bold , :green ] , 'bright fail' => [ :bold , :red ] , 'bright yellow' => [ :bold , :yellow ] , 'pending' => [ :yellow ] , 'suite' => [ ] , 'error title' => [ ] , 'error message' => [ :red ] , 'error stack' => [ :green ] , 'checkmark' => [ :green ] , 'fast' => [ :green ] , 'medium' => [ :green ] , 'slow' => [ :red ] , 'green' => [ :green ] , 'light' => [ :green ] , 'diff gutter' => [ :green ] , 'diff added' => [ :green ] , 'diff removed' => [ :red ] } @context . knife . ui . color ( str , * colors [ type ] ) end
TODO: Use a highline color scheme here instead
TODO : Use a highline color scheme here instead
# 90, # 31, # 92, # 91, # 93, # 36, # 0, # 0, # 31, # 90, # 32, # 90, # 33, # 31, # 32, # 90, # 90, # 42, # 41
type
str