Method: PDK::Generate::PuppetClass#template_data

Defined in:
lib/pdk/generate/puppet_class.rb

#template_dataHash{Symbol => Object}

Prepares the data needed to render the new Puppet class template.

provided to the class and class spec templates during rendering.

Returns:

  • (Hash{Symbol => Object})

    a hash of information that will be



12
13
14
15
16
# File 'lib/pdk/generate/puppet_class.rb', line 12

def template_data
  data = { name: object_name }

  data
end