Class: HammerCLIForemanRemoteExecution::JobInvocation
- Inherits:
-
HammerCLIForeman::Command
- Object
- HammerCLIForeman::Command
- HammerCLIForemanRemoteExecution::JobInvocation
- Defined in:
- lib/hammer_cli_foreman_remote_execution/job_invocation.rb
Defined Under Namespace
Classes: CreateCommand, InfoCommand, ListCommand, OutputCommand
Class Method Summary collapse
Class Method Details
.extend_data(invocation) ⇒ Object
97 98 99 100 101 102 103 104 105 |
# File 'lib/hammer_cli_foreman_remote_execution/job_invocation.rb', line 97 def self.extend_data(invocation) invocation['state'] = invocation['dynflow_task'] ? invocation['dynflow_task']['state'] : _('unknown') if invocation['targeting'] && invocation['targeting']['hosts'] invocation['hosts'] = "\n" + invocation['targeting']['hosts'].map { |host| " - #{host['name']}" }.join("\n") end invocation end |