Class: Actions::Katello::Host::Hypervisors

Inherits:
EntryAction
  • Object
show all
Defined in:
app/lib/actions/katello/host/hypervisors.rb

Instance Method Summary collapse

Instance Method Details

#plan(environment, content_view, hypervisor_params) ⇒ Object



5
6
7
8
9
10
11
12
13
14
# File 'app/lib/actions/katello/host/hypervisors.rb', line 5

def plan(environment, content_view, hypervisor_params)
  sequence do
    hypervisor_results = plan_action(::Actions::Candlepin::Consumer::Hypervisors, hypervisor_params)
    return if hypervisor_results.error

    plan_action(Katello::Host::HypervisorsUpdate, environment, content_view, hypervisor_results.output[:results])

    plan_self(:results => hypervisor_results.output[:results])
  end
end

#runObject



16
17
18
# File 'app/lib/actions/katello/host/hypervisors.rb', line 16

def run
  output[:results] = input[:results]
end