Class: Actions::ForemanProbing::ScanHost
- Inherits:
-
EntryAction
- Object
- EntryAction
- Actions::ForemanProbing::ScanHost
- Includes:
- Helpers::WithDelegatedAction
- Defined in:
- app/lib/actions/scan_host.rb
Instance Method Summary collapse
Instance Method Details
#plan(host, probes, proxy_selector = ::ForemanProbingProxySelector.new, port_overrides = {}) ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'app/lib/actions/scan_host.rb', line 9 def plan(host, probes, proxy_selector = ::ForemanProbingProxySelector.new, port_overrides = {}) action_subject(host, :probes => probes.map(&:to_s)) hostname = find_ip_or_hostname(host) proxy = proxy_selector.determine_proxy(host) plan_delegated_action(proxy, ForemanProbingCore::Actions::UseProbe, hostname, probes, port_overrides) plan_self end |