Class: AnsibleTools::TermColor

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

Class Method Summary collapse

Class Method Details

.c(num) ⇒ Object

カラーシーケンスの出力



174
175
176
# File 'lib/ansible_tools.rb', line 174

def c(num)
  print "\e[#{num.to_s}m"
end

.greenObject



171
# File 'lib/ansible_tools.rb', line 171

def green   ; c 32; end

.redObject

各色



170
# File 'lib/ansible_tools.rb', line 170

def red     ; c 31; end

.resetObject

色を解除



167
# File 'lib/ansible_tools.rb', line 167

def reset   ; c 0 ; end