Module: Proxy::Probing

Defined in:
lib/smart-proxy-probing.rb,
lib/smart-proxy-probing/plugin.rb,
lib/smart-proxy-probing/probes.rb,
lib/smart-proxy-probing/actions.rb,
lib/smart-proxy-probing/version.rb,
lib/smart-proxy-probing/probes/tcp.rb,
lib/smart-proxy-probing/probes/udp.rb,
lib/smart-proxy-probing/probes/icmp.rb,
lib/smart-proxy-probing/probes/nmap.rb,
lib/smart-proxy-probing/neighbour_cache.rb,
lib/smart-proxy-probing/probes/abstract.rb,
lib/smart-proxy-probing/actions/use_probe.rb

Defined Under Namespace

Modules: Actions, Probes Classes: NeighbourCache, Plugin

Constant Summary collapse

VERSION =
'0.0.4'

Class Method Summary collapse

Class Method Details

.nmap_available?Boolean

Returns:

  • (Boolean)


15
16
17
18
19
20
21
# File 'lib/smart-proxy-probing.rb', line 15

def nmap_available?
  return @nmap_available unless @nmap_available.nil?
  `nmap`
  @nmap_available = true
rescue Errno::ENOENT
  @nmap_available = false
end

.use_nmap?Boolean

Returns:

  • (Boolean)


9
10
11
12
13
# File 'lib/smart-proxy-probing.rb', line 9

def use_nmap?
  # TODO:
  # Settings.nmap_enabled &&
  nmap_available?
end