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