Class: ForemanProbingCore::Probes::Abstract

Inherits:
Object
  • Object
show all
Defined in:
lib/foreman_probing_core/probes/abstract.rb

Direct Known Subclasses

Nmap

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(hosts, ports = [], options = {}) ⇒ Abstract

Returns a new instance of Abstract.



14
15
16
17
18
# File 'lib/foreman_probing_core/probes/abstract.rb', line 14

def initialize(hosts, ports = [], options = {})
  @hosts   = Array(hosts)
  @ports   = Array(ports)
  @options = options
end

Class Method Details

.humanized_scan_typeObject

Raises:

  • (NotImplementedError)


9
10
11
# File 'lib/foreman_probing_core/probes/abstract.rb', line 9

def humanized_scan_type
  raise NotImplementedError
end

.scan_typeObject

Raises:

  • (NotImplementedError)


5
6
7
# File 'lib/foreman_probing_core/probes/abstract.rb', line 5

def scan_type
  raise NotImplementedError
end

Instance Method Details

#commandObject

Raises:

  • (NotImplementedError)


20
21
22
# File 'lib/foreman_probing_core/probes/abstract.rb', line 20

def command
  raise NotImplementedError
end

#parse_result(string) ⇒ Object

Raises:

  • (NotImplementedError)


24
25
26
# File 'lib/foreman_probing_core/probes/abstract.rb', line 24

def parse_result(string)
  raise NotImplementedError
end