Class: Actions::Katello::Host::Reassign

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

Instance Method Summary collapse

Instance Method Details

#plan(host, content_view_id, environment_id) ⇒ Object



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

def plan(host, content_view_id, environment_id)
  host.content_facet.assign_single_environment(
    content_view: ::Katello::ContentView.find(content_view_id),
    lifecycle_environment: ::Katello::KTEnvironment.find(environment_id)
  )
  host.update_candlepin_associations
end