Method: Retrospec::Puppet::Generators::TaskGenerator#task_params_output
- Defined in:
- lib/retrospec/plugins/v1/plugin/generators/task_generator.rb
#task_params_output ⇒ Object
32 33 34 35 36 37 38 39 40 |
# File 'lib/retrospec/plugins/v1/plugin/generators/task_generator.rb', line 32 def task_params_output params = {} task_params.each_with_object({}) do |item, obj| obj['description'] = "The description of the #{item} parameter" obj['type'] = 'String' params[item] = obj end params end |