Class: String

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

Overview

PETE: hack

Instance Method Summary collapse

Instance Method Details

#colorize(color_code) ⇒ Object

colorization



80
81
82
# File 'lib/app_up/shell_runner.rb', line 80

def colorize(color_code)
  "\e[#{color_code}m#{self}\e[0m"
end

#greenObject



88
89
90
# File 'lib/app_up/shell_runner.rb', line 88

def green
  colorize(32)
end

#pinkObject



96
97
98
# File 'lib/app_up/shell_runner.rb', line 96

def pink
  colorize(35)
end

#redObject



84
85
86
# File 'lib/app_up/shell_runner.rb', line 84

def red
  colorize(31)
end

#yellowObject



92
93
94
# File 'lib/app_up/shell_runner.rb', line 92

def yellow
  colorize(33)
end