Class: AnsibleTools::TermColor

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

Class Method Summary collapse

Class Method Details

.c(num) ⇒ Object

カラーシーケンスの出力



184
185
186
# File 'lib/ansible_tools.rb', line 184

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

.greenObject



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

def green   ; c 32; end

.redObject

各色



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

def red     ; c 31; end

.resetObject

色を解除



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

def reset   ; c 0 ; end