Sha256: b97e970c4b8f7191c9826ea2a03a0e61af87728c345ac1fce3ebf78738aee755

Contents?: true

Size: 1.21 KB

Versions: 16

Compression:

Stored size: 1.21 KB

Contents

# This file was automatically generated on <%= Time.now %>.
# Use the 'puppet generate types' command to regenerate this file.

<%- unless doc.empty? -%>
  <%- doc.each_line do |line| -%>
# <%= line -%>
  <%- end %>
<%- end -%>
Puppet::Resource::ResourceType3.new(
  <%= name %>,
  [
<%- properties.each_with_index do |property, index| -%>
  <%- unless property.doc.empty? -%>
    <%- property.doc.each_line do |line| -%>
    # <%= line -%>
    <%- end %>
  <%- end -%>
    Puppet::Resource::Param(<%= property.type %>, <%= property.name %><% if property.is_namevar? %>, true<% end %>)<% if index + 1 < properties.size %>,

    <%- end -%>
<%- end %>
  ],
  [
<%- parameters.each_with_index do |parameter, index| -%>
  <%- unless parameter.doc.empty? -%>
    <%- parameter.doc.each_line do |line| -%>
    # <%= line -%>
    <%- end %>
  <%- end -%>
    Puppet::Resource::Param(<%= parameter.type %>, <%= parameter.name %><% if parameter.is_namevar? %>, true<% end %>)<% if index + 1 < parameters.size %>,

    <%- end -%>
<%- end %>
  ],
  {
<%- title_patterns.each_with_index do |mapping, index| -%>
    <%= mapping[0] %> => [<%= mapping[1].join(', ')%>]<%= "," if index + 1 < title_patterns.size %>
<%- end -%>
  },
  <%= isomorphic -%>
)

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
puppet-4.7.1 lib/puppet/generate/templates/type/pcore.erb
puppet-4.7.1-x86-mingw32 lib/puppet/generate/templates/type/pcore.erb
puppet-4.7.1-x64-mingw32 lib/puppet/generate/templates/type/pcore.erb
puppet-4.7.1-universal-darwin lib/puppet/generate/templates/type/pcore.erb
puppet-4.7.0 lib/puppet/generate/templates/type/pcore.erb
puppet-4.7.0-x86-mingw32 lib/puppet/generate/templates/type/pcore.erb
puppet-4.7.0-x64-mingw32 lib/puppet/generate/templates/type/pcore.erb
puppet-4.7.0-universal-darwin lib/puppet/generate/templates/type/pcore.erb
puppet-4.6.2 lib/puppet/generate/templates/type/pcore.erb
puppet-4.6.2-x86-mingw32 lib/puppet/generate/templates/type/pcore.erb
puppet-4.6.2-x64-mingw32 lib/puppet/generate/templates/type/pcore.erb
puppet-4.6.2-universal-darwin lib/puppet/generate/templates/type/pcore.erb
puppet-4.6.1-x86-mingw32 lib/puppet/generate/templates/type/pcore.erb
puppet-4.6.1 lib/puppet/generate/templates/type/pcore.erb
puppet-4.6.1-x64-mingw32 lib/puppet/generate/templates/type/pcore.erb
puppet-4.6.1-universal-darwin lib/puppet/generate/templates/type/pcore.erb