Module: Formatter
- Defined in:
- lib/assets/formatter.rb
Overview
Use to prepare formatted output
Class Method Summary collapse
- .clang_format(file, count) ⇒ Object
- .cpd_format(tokens, language, exclude, result_file, inspect) ⇒ Object
-
.light_blue(mytext) ⇒ Object
String colorization call UI.message Actions::FormatterAction.light_blue(text).
- .return_status(mystatus) ⇒ Object
- .xcode_format(scheme) ⇒ Object
Class Method Details
.clang_format(file, count) ⇒ Object
26 27 28 |
# File 'lib/assets/formatter.rb', line 26 def self.clang_format(file, count) puts ">>> Made #{count} replacements in #{file}" end |
.cpd_format(tokens, language, exclude, result_file, inspect) ⇒ Object
17 18 19 20 21 22 23 24 |
# File 'lib/assets/formatter.rb', line 17 def self.cpd_format(tokens, language, exclude, result_file, inspect) puts "files : #{inspect}" puts "min_tokens : #{tokens}" puts "language : #{language}" puts "exclude_files : #{exclude}" puts 'format : xml' puts "output_file : #{result_file}" end |
.light_blue(mytext) ⇒ Object
String colorization call UI.message Actions::FormatterAction.light_blue(text)
33 34 35 |
# File 'lib/assets/formatter.rb', line 33 def self.light_blue(mytext) "\e[36m#{mytext}\e[0m" end |
.return_status(mystatus) ⇒ Object
9 10 11 |
# File 'lib/assets/formatter.rb', line 9 def self.return_status(mystatus) puts light_blue(">>> Exit command status: #{mystatus}") end |
.xcode_format(scheme) ⇒ Object
13 14 15 |
# File 'lib/assets/formatter.rb', line 13 def self.xcode_format(scheme) puts ">>> Running Xcode analyze command... on #{scheme}..." end |