Module: EtcdTools::Watchdog::Helpers

Included in:
Init
Defined in:
lib/etcd-tools/watchdog/helpers.rb

Instance Method Summary collapse

Instance Method Details

#arpObject



18
19
20
# File 'lib/etcd-tools/watchdog/helpers.rb', line 18

def arp
  @config[:commands][:arp]
end

#arpingObject



10
11
12
# File 'lib/etcd-tools/watchdog/helpers.rb', line 10

def arping
  @config[:commands][:arping]
end

#hostnameObject



6
7
8
# File 'lib/etcd-tools/watchdog/helpers.rb', line 6

def hostname
  @hostname ||= Socket.gethostname
end

#iprouteObject



14
15
16
# File 'lib/etcd-tools/watchdog/helpers.rb', line 14

def iproute
  @config[:commands][:iproute]
end