Class: HammerCLIForemanRemoteExecution::JobTemplate
- Inherits:
-
HammerCLIForeman::Command
- Object
- HammerCLIForeman::Command
- HammerCLIForemanRemoteExecution::JobTemplate
- Defined in:
- lib/hammer_cli_foreman_remote_execution/job_template.rb
Defined Under Namespace
Classes: CreateCommand, DeleteCommand, DumpCommand, ExportCommand, ImportCommand, InfoCommand, ListCommand, UpdateCommand
Class Method Summary collapse
Class Method Details
.data_extensions(template) ⇒ Object
108 109 110 111 112 113 114 115 116 117 |
# File 'lib/hammer_cli_foreman_remote_execution/job_template.rb', line 108 def self.data_extensions(template) template['type'] = template['snippet'] ? 'snippet' : 'job_template' if template['template_inputs'] template_inputs = template['template_inputs'].map { |option| " - #{option['name']}" }.join("\n") template['template_inputs'] = "\n#{template_inputs}\n" end template end |