Module: CTTExtensions

Included in:
Object
Defined in:
lib/cli/ctt_extensions.rb

Instance Method Summary collapse

Instance Method Details

#cyan(message) ⇒ Object



29
30
31
# File 'lib/cli/ctt_extensions.rb', line 29

def cyan(message)
  Paint[message, :cyan]
end

#err(message) ⇒ Object

Raises:



13
14
15
# File 'lib/cli/ctt_extensions.rb', line 13

def err(message)
  raise CTT::Cli::CliError, message
end

#green(message) ⇒ Object



25
26
27
# File 'lib/cli/ctt_extensions.rb', line 25

def green(message)
  Paint[message, :green]
end

#nlObject



9
10
11
# File 'lib/cli/ctt_extensions.rb', line 9

def nl
  puts ""
end

#red(message) ⇒ Object



17
18
19
# File 'lib/cli/ctt_extensions.rb', line 17

def red(message)
  Paint[message, :red]
end

#say(message, color = nil, sep = "\n") ⇒ Object



4
5
6
7
# File 'lib/cli/ctt_extensions.rb', line 4

def say(message, color = nil, sep = "\n")
  msg = message
  puts Paint[msg, color]
end

#yellow(message) ⇒ Object



21
22
23
# File 'lib/cli/ctt_extensions.rb', line 21

def yellow(message)
  Paint[message, :yellow]
end