Class: Actions::Katello::Host::PackageGroup::Remove
- Inherits:
-
AgentAction
- Object
- EntryAction
- AgentAction
- Actions::Katello::Host::PackageGroup::Remove
show all
- Defined in:
- app/lib/actions/katello/host/package_group/remove.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from AgentAction
#accept_timeout, #dispatch_history, #dispatch_message, #fail_on_errors, #finish_timeout, #plan, #presenter, #process_timeout, #rescue_strategy, #run
#presenter
Class Method Details
.agent_message ⇒ Object
6
7
8
|
# File 'app/lib/actions/katello/host/package_group/remove.rb', line 6
def self.agent_message
:remove_package_group
end
|
Instance Method Details
#agent_action_type ⇒ Object
10
11
12
|
# File 'app/lib/actions/katello/host/package_group/remove.rb', line 10
def agent_action_type
:content_uninstall
end
|
#finalize ⇒ Object
22
23
24
25
|
# File 'app/lib/actions/katello/host/package_group/remove.rb', line 22
def finalize
host = ::Host.find_by(:id => input[:host_id])
host.update(audit_comment: (_("Removal of package group(s) requested: %{groups}") % {groups: input[:content].join(", ")}).truncate(255))
end
|
18
19
20
|
# File 'app/lib/actions/katello/host/package_group/remove.rb', line 18
def humanized_input
[input[:content].join(', ')] + super
end
|
#humanized_name ⇒ Object
14
15
16
|
# File 'app/lib/actions/katello/host/package_group/remove.rb', line 14
def humanized_name
_("Remove package group")
end
|