templates/puppet/modules/README.md.erb in falkorlib-0.4.10 vs templates/puppet/modules/README.md.erb in falkorlib-0.5.0
- old
+ new
@@ -63,13 +63,14 @@
See also [`tests/init.pp`](tests/init.pp)
<% unless config[:classes].nil? %>
<% config[:classes].each do |cl| %>
+<% next if cl == config[:shortname] %>
### Class `<%= cl %>`
-See `tests/<%= cl.gsub(/::/, '/') %>.pp`
+See [`tests/<%= cl.gsub("#{config[:shortname]}::", "").gsub(/::/, '/') %>.pp`](tests/<%= cl.gsub("#{config[:shortname]}::", "").gsub(/::/, '/') %>.pp)
<% end %>
<% end %>
<% unless config[:definitions].nil? %>
<% config[:definitions].each do |de| %>
@@ -86,10 +87,10 @@
<%= de %> { 'toto':
ensure => 'present',
}
-See also `tests/<%= de.gsub(/::/, '/') %>.pp`
+See also [`tests/<%= de.gsub("#{config[:shortname]}::", "").gsub("#{config[:shortname]}::", "").gsub(/::/, '/') %>.pp`](tests/<%= de.gsub("#{config[:shortname]}::", "").gsub("#{config[:shortname]}::", "").gsub(/::/, '/') %>.pp)
<% end %>
<% end %>
## Librarian-Puppet / R10K Setup