Module: DnsMadeEasy::CLI::MessageHelpers::InstanceMethods

Defined in:
lib/dnsmadeeasy/cli/message_helpers.rb

Overview

Boxed helpers for command classes. The warn box is exposed as #warning because commands already use Kernel-style plain #warn.

Instance Method Summary collapse

Instance Method Details

#error(message) ⇒ Object



70
71
72
# File 'lib/dnsmadeeasy/cli/message_helpers.rb', line 70

def error(message)
  MessageHelpers.print_box(:error, message, message_output)
end

#info(message) ⇒ Object



62
63
64
# File 'lib/dnsmadeeasy/cli/message_helpers.rb', line 62

def info(message)
  MessageHelpers.print_box(:info, message, message_output)
end

#kv(key, value) ⇒ Object



78
79
80
# File 'lib/dnsmadeeasy/cli/message_helpers.rb', line 78

def kv(key, value)
  MessageHelpers.kv(key, value)
end

#success(message) ⇒ Object



74
75
76
# File 'lib/dnsmadeeasy/cli/message_helpers.rb', line 74

def success(message)
  MessageHelpers.print_box(:success, message, message_output)
end

#warning(message) ⇒ Object



66
67
68
# File 'lib/dnsmadeeasy/cli/message_helpers.rb', line 66

def warning(message)
  MessageHelpers.print_box(:warn, message, message_output)
end