Class: Actions::ForemanTemplateTasks::TemplateExportAction
- Inherits:
-
TemplateAction
- Object
- Base
- TemplateAction
- Actions::ForemanTemplateTasks::TemplateExportAction
show all
- Defined in:
- app/lib/actions/foreman_template_tasks/template_export_action.rb
Instance Method Summary
collapse
#_plan, cleanup_after, #delay, #humanized_name, #humanized_output, #plan, #rescue_strategy, #task_output
Instance Method Details
#humanized_action ⇒ Object
12
13
14
|
# File 'app/lib/actions/foreman_template_tasks/template_export_action.rb', line 12
def humanized_action
'Export'
end
|
#run ⇒ Object
7
8
9
10
|
# File 'app/lib/actions/foreman_template_tasks/template_export_action.rb', line 7
def run
exporter = ForemanTemplates::TemplateExporter.new(input[:task_params])
output[:results] = exporter.export![:results].map(&:to_h)
end
|