Class: CMSScanner::Formatter::CliNoColour

Inherits:
Cli
  • Object
show all
Defined in:
app/formatters/cli_no_colour.rb

Overview

CLI No Colour Formatter

Direct Known Subclasses

CliNoColor

Constant Summary

Constants inherited from Base

Base::ERB_SUPPORTS_KVARGS

Instance Attribute Summary

Attributes inherited from Base

#controller_name

Instance Method Summary collapse

Methods inherited from Cli

#amber, #blue, #bold, #critical_icon, #green, #info_icon, #notice_icon, #red, #warning_icon

Methods inherited from Base

#base_format, #beautify, #formats, #initialize, #output, #render, #template_vars, #user_interaction?, #view_path, #views_directories

Constructor Details

This class inherits a constructor from CMSScanner::Formatter::Base

Instance Method Details

#colorize(text, _color_code) ⇒ Object



12
13
14
# File 'app/formatters/cli_no_colour.rb', line 12

def colorize(text, _color_code)
  text
end

#formatObject

Override to get the cli views



8
9
10
# File 'app/formatters/cli_no_colour.rb', line 8

def format
  'cli'
end