Module: EtcdTools::Watchdog::Util::Helpers
- Included in:
- Init
- Defined in:
- lib/etcd-tools/watchdog/util/helpers.rb
Instance Method Summary collapse
Instance Method Details
#arp ⇒ Object
19 20 21 |
# File 'lib/etcd-tools/watchdog/util/helpers.rb', line 19 def arp @config[:commands][:arp] end |
#arping ⇒ Object
11 12 13 |
# File 'lib/etcd-tools/watchdog/util/helpers.rb', line 11 def arping @config[:commands][:arping] end |
#hostname ⇒ Object
7 8 9 |
# File 'lib/etcd-tools/watchdog/util/helpers.rb', line 7 def hostname @hostname ||= Socket.gethostname end |
#iproute ⇒ Object
15 16 17 |
# File 'lib/etcd-tools/watchdog/util/helpers.rb', line 15 def iproute @config[:commands][:iproute] end |