Define error method
This commit is contained in:
@@ -59,6 +59,11 @@ raise 'at least one of -4 or -6 required' unless options[:ipv4] || options[:ipv6
|
||||
password = options[:pw_file]
|
||||
raise "file does not exist or is not readable: #{password}" unless File::readable?(password)
|
||||
|
||||
def error(msg)
|
||||
puts msg
|
||||
raise msg
|
||||
end
|
||||
|
||||
# XMPP client for Fudo Backplane
|
||||
class XMPPClient
|
||||
def initialize(domain, hostname, server, password)
|
||||
|
||||
Reference in New Issue
Block a user