Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/ec2-starter/execution.rb

Instance Method Summary collapse

Instance Method Details

#greenObject



127
128
129
# File 'lib/ec2-starter/execution.rb', line 127

def green
  "\033[32m#{self}\033[0m" 
end

#redObject



131
132
133
# File 'lib/ec2-starter/execution.rb', line 131

def red
  "\033[31m#{self}\033[0m"
end

#whiteObject



139
140
141
# File 'lib/ec2-starter/execution.rb', line 139

def white
  "\033[1m#{self}\033[0m"
end

#yellowObject



135
136
137
# File 'lib/ec2-starter/execution.rb', line 135

def yellow
  "\033[33m#{self}\033[0m"
end