Module: Multipull::TerminalColor

Included in:
Command
Defined in:
lib/multipull/terminal_color.rb

Instance Method Summary collapse

Instance Method Details

#blue(s) ⇒ Object



17
18
19
# File 'lib/multipull/terminal_color.rb', line 17

def blue(s)
  "\e[34m#{s}\e[0m"
end

#bold(s) ⇒ Object



5
6
7
# File 'lib/multipull/terminal_color.rb', line 5

def bold(s)
  "\e[1m#{s}\e[22m"
end

#cyan(s) ⇒ Object



13
14
15
# File 'lib/multipull/terminal_color.rb', line 13

def cyan(s)
  "\e[36m#{s}\e[0m"
end

#green(s) ⇒ Object



9
10
11
# File 'lib/multipull/terminal_color.rb', line 9

def green(s)
  "\e[32m#{s}\e[0m"
end

#magenta(s) ⇒ Object



21
22
23
# File 'lib/multipull/terminal_color.rb', line 21

def magenta(s)
  "\033[35m#{s}\033[0m"
end

#red(s) ⇒ Object



25
26
27
# File 'lib/multipull/terminal_color.rb', line 25

def red(s)
  "\033[31m#{s}\033[0m"
end