Module: Ftpmock::VerboseUtils

Defined in:
lib/ftpmock/utils/verbose_utils.rb

Class Method Summary collapse

Class Method Details

.alert(tag, content, color) ⇒ Object



13
14
15
16
17
# File 'lib/ftpmock/utils/verbose_utils.rb', line 13

def alert(tag, content, color)
  content = ColorUtils.colorize(content, color)
  output = ColorUtils.bold "#{tag} -> #{content}"
  puts output
end

.puts(string = '') ⇒ Object



9
10
11
# File 'lib/ftpmock/utils/verbose_utils.rb', line 9

def puts(string = '')
  Kernel.puts string
end

.warn(string) ⇒ Object



5
6
7
# File 'lib/ftpmock/utils/verbose_utils.rb', line 5

def warn(string)
  Kernel.warn string
end