oldskool-puppet 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/oldskool/puppetdoc.rb +3 -7
- metadata +49 -73
- data/views/password.erb +0 -8
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: aac1c0f6ebc1ec81d6d90a23bd65c99c1eef3af5
|
4
|
+
data.tar.gz: 1845f29f4910772538a62868c300a7f80b26f59e
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: a85d04853c3d619541949476384271e1970cbd461139ee95439fd7eaa9b57ed043ccabb82f4813072a44b0254fde8160f91752f75ccd7ab7a9af3bf4efdeed96
|
7
|
+
data.tar.gz: 6494c8c7bf2c067f1e38d801c16a4bdaad74a2739d5f61ddf8d9b44bfe9d71b6031d44fa1cff9d87db116be450dc9c22516bc94af88cd51bbd5fd283e5e32ccb
|
data/lib/oldskool/puppetdoc.rb
CHANGED
@@ -19,18 +19,14 @@ module Oldskool
|
|
19
19
|
@type = Puppet::Type.const_get(type.capitalize)
|
20
20
|
end
|
21
21
|
|
22
|
-
def cleantext(text)
|
23
|
-
(text =~ /^(\s+)/) ? text.gsub(/^#{$1}/,'') : text
|
24
|
-
end
|
25
|
-
|
26
22
|
def paramdoc(param)
|
27
23
|
doc = {}
|
28
24
|
|
29
25
|
if type.parameters.include?(param)
|
30
|
-
doc[:markdown] =
|
26
|
+
doc[:markdown] = type.attrclass(param).doc
|
31
27
|
doc[:type] = :param
|
32
28
|
elsif type.metaparams.include?(param)
|
33
|
-
doc[:markdown] =
|
29
|
+
doc[:markdown] = type.attrclass(param).doc
|
34
30
|
doc[:type] = :meta
|
35
31
|
end
|
36
32
|
|
@@ -43,7 +39,7 @@ module Oldskool
|
|
43
39
|
|
44
40
|
def doc
|
45
41
|
param_docs = {:name => type.name,
|
46
|
-
:description =>
|
42
|
+
:description => type.doc,
|
47
43
|
:version => Puppet.version,
|
48
44
|
:params => {}, :metaparams => {}}
|
49
45
|
|
metadata
CHANGED
@@ -1,98 +1,74 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: oldskool-puppet
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease: false
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 0
|
9
|
-
- 3
|
10
|
-
version: 0.0.3
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.4
|
11
5
|
platform: ruby
|
12
|
-
authors:
|
6
|
+
authors:
|
13
7
|
- R.I.Pienaar
|
14
8
|
autorequire:
|
15
9
|
bindir: bin
|
16
10
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
dependencies:
|
21
|
-
- !ruby/object:Gem::Dependency
|
11
|
+
date: 2015-01-26 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
22
14
|
name: puppet
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
hash: 3
|
30
|
-
segments:
|
31
|
-
- 0
|
32
|
-
version: "0"
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - '='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 3.7.3
|
33
20
|
type: :runtime
|
34
|
-
version_requirements: *id001
|
35
|
-
- !ruby/object:Gem::Dependency
|
36
|
-
name: redcarpet
|
37
21
|
prerelease: false
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - '='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 3.7.3
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: redcarpet
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
47
34
|
type: :runtime
|
48
|
-
|
49
|
-
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
description: 'description: Generate documentation for Puppet types'
|
50
42
|
email: rip@devco.net
|
51
43
|
executables: []
|
52
|
-
|
53
44
|
extensions: []
|
54
|
-
|
55
45
|
extra_rdoc_files: []
|
56
|
-
|
57
|
-
files:
|
58
|
-
- lib/oldskool/puppetdoc.rb
|
59
|
-
- lib/oldskool/puppet_handler.rb
|
46
|
+
files:
|
60
47
|
- lib/oldskool-puppet.rb
|
48
|
+
- lib/oldskool/puppet_handler.rb
|
49
|
+
- lib/oldskool/puppetdoc.rb
|
61
50
|
- views/type.erb
|
62
|
-
- views/password.erb
|
63
|
-
has_rdoc: true
|
64
51
|
homepage: http://devco.net/
|
65
52
|
licenses: []
|
66
|
-
|
53
|
+
metadata: {}
|
67
54
|
post_install_message:
|
68
55
|
rdoc_options: []
|
69
|
-
|
70
|
-
require_paths:
|
56
|
+
require_paths:
|
71
57
|
- lib
|
72
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
none: false
|
83
|
-
requirements:
|
84
|
-
- - ">="
|
85
|
-
- !ruby/object:Gem::Version
|
86
|
-
hash: 3
|
87
|
-
segments:
|
88
|
-
- 0
|
89
|
-
version: "0"
|
58
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
59
|
+
requirements:
|
60
|
+
- - '>='
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '0'
|
63
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - '>='
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: '0'
|
90
68
|
requirements: []
|
91
|
-
|
92
69
|
rubyforge_project:
|
93
|
-
rubygems_version:
|
70
|
+
rubygems_version: 2.0.14
|
94
71
|
signing_key:
|
95
|
-
specification_version:
|
96
|
-
summary: oldskool-
|
72
|
+
specification_version: 4
|
73
|
+
summary: oldskool-puppet
|
97
74
|
test_files: []
|
98
|
-
|
data/views/password.erb
DELETED
@@ -1,8 +0,0 @@
|
|
1
|
-
<% unless @error %>
|
2
|
-
<table>
|
3
|
-
<tr><td><strong>Password:</strong></td><td><%= @result[:pw].password[:string] %></td></tr>
|
4
|
-
<tr><td><strong>Crypt:</strong></td><td><%= @result[:pw].password[:crypt] %></td></tr>
|
5
|
-
<tr><td><strong>MD5:</strong></td><td><%= @result[:pw].password[:md5] %></td></tr>
|
6
|
-
<tr><td><strong>Nato:</strong></td><td><%= @result[:pw].password[:nato] %></td></tr>
|
7
|
-
</table>
|
8
|
-
<% end %>
|