Class: Actions::Katello::System::Reassign
- Inherits:
-
Base
- Object
- Base
- Actions::Katello::System::Reassign
- Defined in:
- app/lib/actions/katello/system/reassign.rb
Instance Method Summary collapse
Instance Method Details
#plan(system, content_view_id, environment_id) ⇒ Object
5 6 7 8 9 10 |
# File 'app/lib/actions/katello/system/reassign.rb', line 5 def plan(system, content_view_id, environment_id) system.foreman_host.content_facet.content_view = ::Katello::ContentView.find(content_view_id) system.foreman_host.content_facet.lifecycle_environment = ::Katello::KTEnvironment.find(environment_id) plan_action(::Actions::Katello::Host::Update, system.foreman_host) end |