Module: Package::Audit::Util::BashColor
- Defined in:
- lib/package/audit/util/bash_color.rb
Class Method Summary collapse
- .blue(str) ⇒ Object
- .cyan(str) ⇒ Object
- .green(str) ⇒ Object
- .magenta(str) ⇒ Object
- .orange(str) ⇒ Object
- .red(str) ⇒ Object
- .yellow(str) ⇒ Object
Class Method Details
.blue(str) ⇒ Object
29 30 31 |
# File 'lib/package/audit/util/bash_color.rb', line 29 def self.blue(str) "\e[34m#{str}\e[0m" end |
.cyan(str) ⇒ Object
21 22 23 |
# File 'lib/package/audit/util/bash_color.rb', line 21 def self.cyan(str) "\e[36m#{str}\e[0m" end |
.green(str) ⇒ Object
5 6 7 |
# File 'lib/package/audit/util/bash_color.rb', line 5 def self.green(str) "\e[32m#{str}\e[0m" end |
.magenta(str) ⇒ Object
25 26 27 |
# File 'lib/package/audit/util/bash_color.rb', line 25 def self.magenta(str) "\e[35m#{str}\e[0m" end |
.orange(str) ⇒ Object
13 14 15 |
# File 'lib/package/audit/util/bash_color.rb', line 13 def self.orange(str) "\e[38;5;208m#{str}\e[0m" end |
.red(str) ⇒ Object
17 18 19 |
# File 'lib/package/audit/util/bash_color.rb', line 17 def self.red(str) "\e[31m#{str}\e[0m" end |
.yellow(str) ⇒ Object
9 10 11 |
# File 'lib/package/audit/util/bash_color.rb', line 9 def self.yellow(str) "\e[33m#{str}\e[0m" end |