Module: EtcdTools::Watchdog::Util::Helpers

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

Instance Method Summary collapse

Instance Method Details

#arpObject



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

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

#arpingObject



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

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

#hostnameObject



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

def hostname
  @hostname ||= Socket.gethostname
end

#iprouteObject



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

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