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



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

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

#info(message) ⇒ Object



54
55
56
# File 'lib/dnsmadeeasy/cli/message_helpers.rb', line 54

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

#success(message) ⇒ Object



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

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

#warning(message) ⇒ Object



58
59
60
# File 'lib/dnsmadeeasy/cli/message_helpers.rb', line 58

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