2014-06-15 21:09:12 -06:00
|
|
|
#!/usr/bin/env ruby
|
|
|
|
|
2015-05-02 17:53:53 -06:00
|
|
|
conn_hash = { hosts: [
|
2014-06-15 21:09:12 -06:00
|
|
|
|
2015-06-10 10:11:20 -06:00
|
|
|
{ login: login, passcode: passcode, host: host, port: port }
|
2015-05-02 17:53:53 -06:00
|
|
|
],
|
|
|
|
reliable: false, # Override default
|
2016-05-20 02:02:20 -06:00
|
|
|
connect_headers: conn_hdrs }
|
2014-06-15 21:09:12 -06:00
|
|
|
|
2015-05-02 17:53:53 -06:00
|
|
|
hash = { hosts: [
|
2014-06-15 21:09:12 -06:00
|
|
|
|
2015-06-10 10:11:20 -06:00
|
|
|
{ login: user, passcode: password, host: 'noonehome', port: 2525 },
|
2014-06-15 21:09:12 -06:00
|
|
|
|
2015-06-10 10:11:20 -06:00
|
|
|
{ login: user, passcode: password, host: host, port: port }
|
2014-06-15 21:09:12 -06:00
|
|
|
|
2015-05-02 17:53:53 -06:00
|
|
|
],
|
2014-06-15 21:09:12 -06:00
|
|
|
|
2015-05-02 17:53:53 -06:00
|
|
|
logger: mylog, # This enables callback logging!
|
2014-06-15 21:09:12 -06:00
|
|
|
|
2016-05-20 02:02:20 -06:00
|
|
|
max_reconnect_attempts: 5 }
|