oldskool-puppet 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/oldskool/puppetdoc.rb +4 -0
- data/views/type.erb +5 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 20a308cb9b92f1e42ee8edc7bdd605449b787e14
|
4
|
+
data.tar.gz: 8a656c33a98982c30cfb7d2eb8d595b5a423ef6e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8925a69e30791037bb046dee4deac09395158d9497013c1297636747e62788e711c3d642768a060eea8fe40ef6cdc24aa6049592404e7d6985d88d66cc70b9bd
|
7
|
+
data.tar.gz: 269f7060ff770dd72e64e5d76f45b276c278ca1f076cd271919810e163fc4b7a76c8e444239a9812dd928239fc6ac3ed31aeef632edb90eef9cbfdb36b79b46e
|
data/lib/oldskool/puppetdoc.rb
CHANGED
@@ -25,6 +25,9 @@ module Oldskool
|
|
25
25
|
if type.parameters.include?(param)
|
26
26
|
doc[:markdown] = type.attrclass(param).doc
|
27
27
|
doc[:type] = :param
|
28
|
+
elsif type.validproperties.include?(param)
|
29
|
+
doc[:markdown] = type.propertybyname(param).doc
|
30
|
+
doc[:type] = :property
|
28
31
|
elsif type.metaparams.include?(param)
|
29
32
|
doc[:markdown] = type.attrclass(param).doc
|
30
33
|
doc[:type] = :meta
|
@@ -44,6 +47,7 @@ module Oldskool
|
|
44
47
|
:params => {}, :metaparams => {}}
|
45
48
|
|
46
49
|
type.parameters.each {|param| param_docs[:params][param] = paramdoc(param)}
|
50
|
+
type.validproperties.each {|param| param_docs[:params][param] = paramdoc(param)}
|
47
51
|
type.metaparams.each {|param| param_docs[:metaparams][param] = paramdoc(param)}
|
48
52
|
|
49
53
|
param_docs
|
data/views/type.erb
CHANGED
@@ -12,8 +12,12 @@
|
|
12
12
|
<div>
|
13
13
|
<%= markdown @result[:type][:description] %>
|
14
14
|
</div>
|
15
|
+
<% @result[:type][:params].keys.sort.each do |param| %>
|
16
|
+
<a href="#param-<%= param %>"><%= param %></a>
|
17
|
+
<% end %>
|
15
18
|
<a name="params"></a>
|
16
19
|
<% @result[:type][:params].keys.sort.each do |param| %>
|
20
|
+
<a name="param-<%= param %>"></a>
|
17
21
|
<% doc = @result[:type][:params][param] %>
|
18
22
|
<h3>
|
19
23
|
<%= param %>
|
@@ -26,6 +30,7 @@
|
|
26
30
|
<a name="metaparams"></a>
|
27
31
|
<hr>
|
28
32
|
<% @result[:type][:metaparams].keys.sort.each do |param| %>
|
33
|
+
<a name="metaparam-<%= param %>"></a>
|
29
34
|
<% doc = @result[:type][:metaparams][param] %>
|
30
35
|
<h3>
|
31
36
|
<%= param %> <span class="label notice">Meta</span>
|