lib/pdk/generate/task.rb
# Prepares the data needed to render the new task template.
#
# @return [Hash{Symbol => Object}] a hash of information that will be
# provided to the task template during rendering. Additionally, this hash
# (with the :name key removed) makes up the task metadata.
Prepares the data needed to render the new task template.
Prepares the data needed to render the new task template .
def template_data
        {
          name:                object_name,
          puppet_task_version: 1,
          supports_noop:       false,
          description:         options.fetch(:description, 'A short description of this task'),
          parameters:          {},
        }
      end
def template_data { name : object_name , puppet_task_version : 1 , supports_noop : false , description : options . fetch ( :description , 'A short description of this task' ) , parameters : { } , } end
Prepares the data needed to render the new task template.
Prepares the data needed to render the new task template .
a hash of information that will be provided to the task template during rendering. Additionally, this hash (with the :name key removed) makes up the task metadata.
a hash of information that will be provided to the task template during rendering . Additionally this hash ( with the : name key removed ) makes up the task metadata .
Hash{Symbol => Object}