bolt 0.5.1 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of bolt might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/exe/bolt +1 -1
- data/lib/bolt.rb +0 -3
- data/lib/bolt/cli.rb +66 -32
- data/lib/bolt/config.rb +19 -0
- data/lib/bolt/executor.rb +21 -16
- data/lib/bolt/node.rb +13 -10
- data/lib/bolt/node/errors.rb +22 -0
- data/lib/bolt/node/ssh.rb +25 -2
- data/lib/bolt/node/winrm.rb +14 -2
- data/lib/bolt/node_uri.rb +15 -14
- data/lib/bolt/result.rb +22 -0
- data/lib/bolt/version.rb +1 -1
- data/vendored/puppet/lib/puppet/application/script.rb +7 -1
- data/vendored/puppet/lib/puppet/configurer.rb +1 -1
- data/vendored/puppet/lib/puppet/defaults.rb +18 -1
- data/vendored/puppet/lib/puppet/functions/run_command.rb +5 -2
- data/vendored/puppet/lib/puppet/functions/run_script.rb +5 -2
- data/vendored/puppet/lib/puppet/functions/run_task.rb +7 -2
- data/vendored/puppet/lib/puppet/gettext/config.rb +47 -26
- data/vendored/puppet/lib/puppet/graph/relationship_graph.rb +6 -0
- data/vendored/puppet/lib/puppet/indirector/node/ldap.rb +19 -3
- data/vendored/puppet/lib/puppet/module.rb +8 -7
- data/vendored/puppet/lib/puppet/network/http/webrick.rb +1 -0
- data/vendored/puppet/lib/puppet/pops/loader/loader_paths.rb +9 -0
- data/vendored/puppet/lib/puppet/pops/loader/module_loaders.rb +8 -0
- data/vendored/puppet/lib/puppet/pops/types/p_error_type.rb +12 -0
- data/vendored/puppet/lib/puppet/pops/types/p_object_type.rb +9 -3
- data/vendored/puppet/lib/puppet/pops/types/ruby_generator.rb +65 -24
- data/vendored/puppet/lib/puppet/provider/mount.rb +25 -8
- data/vendored/puppet/lib/puppet/provider/package/dnf.rb +1 -1
- data/vendored/puppet/lib/puppet/provider/package/gem.rb +1 -1
- data/vendored/puppet/lib/puppet/provider/package/pkg.rb +3 -0
- data/vendored/puppet/lib/puppet/provider/service/launchd.rb +1 -1
- data/vendored/puppet/lib/puppet/provider/zfs/zfs.rb +20 -1
- data/vendored/puppet/lib/puppet/type/mount.rb +6 -2
- data/vendored/puppet/lib/puppet/type/yumrepo.rb +9 -0
- data/vendored/puppet/lib/puppet/version.rb +1 -1
- data/vendored/puppet/lib/puppet_pal.rb +33 -7
- metadata +45 -83
- data/.gitignore +0 -33
- data/.gitmodules +0 -12
- data/.rspec +0 -2
- data/.rubocop.yml +0 -61
- data/.travis.yml +0 -18
- data/CODE_OF_CONDUCT.md +0 -46
- data/CONTRIBUTING.md +0 -27
- data/Gemfile +0 -9
- data/INSTALL.md +0 -70
- data/LICENSE +0 -201
- data/README.md +0 -353
- data/Rakefile +0 -27
- data/Vagrantfile +0 -13
- data/appveyor.yml +0 -29
- data/bolt.gemspec +0 -50
- data/docs/writing_tasks_and_plans.pdf +0 -0
- data/metadata.json +0 -13
- data/tasks/init.json +0 -3
- data/tasks/init.rb +0 -44
- data/ux/bolt-CLI-spec.md +0 -186
- data/vendored/puppet/lib/puppet/external/nagios/grammar.ry +0 -248
- data/vendored/puppet/lib/puppet/external/nagios/makefile +0 -9
- data/vendored/puppet/lib/puppet/face/help/action.erb +0 -86
- data/vendored/puppet/lib/puppet/face/help/face.erb +0 -114
- data/vendored/puppet/lib/puppet/face/help/global.erb +0 -16
- data/vendored/puppet/lib/puppet/face/help/man.erb +0 -152
- data/vendored/puppet/lib/puppet/generate/templates/type/pcore.erb +0 -42
- data/vendored/puppet/lib/puppet/module_tool/skeleton/templates/generator/.fixtures.yml.erb +0 -7
- data/vendored/puppet/lib/puppet/module_tool/skeleton/templates/generator/.gitignore +0 -18
- data/vendored/puppet/lib/puppet/module_tool/skeleton/templates/generator/.rubocop.yml +0 -42
- data/vendored/puppet/lib/puppet/module_tool/skeleton/templates/generator/.yardopts +0 -1
- data/vendored/puppet/lib/puppet/module_tool/skeleton/templates/generator/Gemfile +0 -18
- data/vendored/puppet/lib/puppet/module_tool/skeleton/templates/generator/README.md.erb +0 -89
- data/vendored/puppet/lib/puppet/module_tool/skeleton/templates/generator/Rakefile +0 -32
- data/vendored/puppet/lib/puppet/module_tool/skeleton/templates/generator/examples/init.pp.erb +0 -12
- data/vendored/puppet/lib/puppet/module_tool/skeleton/templates/generator/manifests/init.pp.erb +0 -48
- data/vendored/puppet/lib/puppet/module_tool/skeleton/templates/generator/metadata.json.erb +0 -1
- data/vendored/puppet/lib/puppet/module_tool/skeleton/templates/generator/spec/classes/init_spec.rb.erb +0 -6
- data/vendored/puppet/lib/puppet/pops/model/ast.pp +0 -695
- data/vendored/puppet/lib/puppet/pops/parser/egrammar.ra +0 -937
- data/vendored/puppet/lib/puppet/pops/resource/resource_type_set.pcore +0 -22
- data/vendored/puppet/lib/puppet/util/libuser.conf +0 -15
- data/vendored/puppet/lib/puppet/vendor/deep_merge/CHANGELOG +0 -45
- data/vendored/puppet/lib/puppet/vendor/deep_merge/Gemfile +0 -3
- data/vendored/puppet/lib/puppet/vendor/deep_merge/LICENSE +0 -21
- data/vendored/puppet/lib/puppet/vendor/deep_merge/PUPPET_README.md +0 -6
- data/vendored/puppet/lib/puppet/vendor/deep_merge/README.md +0 -113
- data/vendored/puppet/lib/puppet/vendor/deep_merge/Rakefile +0 -19
- data/vendored/puppet/lib/puppet/vendor/deep_merge/deep_merge.gemspec +0 -35
- data/vendored/puppet/lib/puppet/vendor/pathspec/CHANGELOG.md +0 -2
- data/vendored/puppet/lib/puppet/vendor/pathspec/LICENSE +0 -201
- data/vendored/puppet/lib/puppet/vendor/pathspec/PUPPET_README.md +0 -6
- data/vendored/puppet/lib/puppet/vendor/pathspec/README.md +0 -53
- data/vendored/puppet/lib/puppet/vendor/semantic_puppet/locales/config.yaml +0 -21
@@ -1,86 +0,0 @@
|
|
1
|
-
<%# encoding: UTF-8%>
|
2
|
-
<% if action.synopsis -%>
|
3
|
-
USAGE: <%= action.synopsis %>
|
4
|
-
|
5
|
-
<% end -%>
|
6
|
-
<%= action.short_description || action.summary || face.summary || "undocumented subcommand" %>
|
7
|
-
|
8
|
-
<% if action.returns -%>
|
9
|
-
RETURNS: <%= action.returns.strip %>
|
10
|
-
|
11
|
-
<% end -%>
|
12
|
-
OPTIONS:
|
13
|
-
<%# Remove these options once we can introspect them normally. -%>
|
14
|
-
--render-as FORMAT - The rendering format to use.
|
15
|
-
--verbose - Whether to log verbosely.
|
16
|
-
--debug - Whether to log debug information.
|
17
|
-
<% optionroom = 30
|
18
|
-
summaryroom = 80 - 5 - optionroom
|
19
|
-
|
20
|
-
disp_glob_opts = action.display_global_options.uniq
|
21
|
-
unless disp_glob_opts.empty?
|
22
|
-
disp_glob_opts.sort.each do |name|
|
23
|
-
option = name
|
24
|
-
desc = Puppet.settings.setting(option).desc
|
25
|
-
type = Puppet.settings.setting(option).default
|
26
|
-
type ||= Puppet.settings.setting(option).type.to_s.upcase -%>
|
27
|
-
<%= "--#{option} #{type}".ljust(optionroom) + ' - ' -%>
|
28
|
-
<% if !(desc) -%>
|
29
|
-
undocumented option
|
30
|
-
<% elsif desc.length <= summaryroom -%>
|
31
|
-
<%= desc %>
|
32
|
-
<%
|
33
|
-
else
|
34
|
-
words = desc.split
|
35
|
-
wrapped = ['']
|
36
|
-
i = 0
|
37
|
-
words.each do |word|
|
38
|
-
if wrapped[i].length + word.length <= summaryroom
|
39
|
-
wrapped[i] << word + ' '
|
40
|
-
else
|
41
|
-
i += 1
|
42
|
-
wrapped[i] = word + ' '
|
43
|
-
end
|
44
|
-
end -%>
|
45
|
-
<%= wrapped.shift.strip %>
|
46
|
-
<% wrapped.each do |line| -%>
|
47
|
-
<%= (' ' * (optionroom + 5) ) + line.strip %>
|
48
|
-
<% end
|
49
|
-
end
|
50
|
-
end
|
51
|
-
end
|
52
|
-
unless action.options.empty?
|
53
|
-
action.options.sort.each do |name|
|
54
|
-
option = action.get_option name -%>
|
55
|
-
<%= " " + option.optparse.join(" | ")[0,(optionroom - 1)].ljust(optionroom) + ' - ' -%>
|
56
|
-
<% if !(option.summary) -%>
|
57
|
-
undocumented option
|
58
|
-
<% elsif option.summary.length <= summaryroom -%>
|
59
|
-
<%= option.summary %>
|
60
|
-
<%
|
61
|
-
else
|
62
|
-
words = option.summary.split
|
63
|
-
wrapped = ['']
|
64
|
-
i = 0
|
65
|
-
words.each do |word|
|
66
|
-
if wrapped[i].length + word.length <= summaryroom
|
67
|
-
wrapped[i] << word + ' '
|
68
|
-
else
|
69
|
-
i += 1
|
70
|
-
wrapped[i] = word + ' '
|
71
|
-
end
|
72
|
-
end
|
73
|
-
-%>
|
74
|
-
<%= wrapped.shift.strip %>
|
75
|
-
<% wrapped.each do |line| -%>
|
76
|
-
<%= (' ' * (optionroom + 5) ) + line.strip %>
|
77
|
-
<% end
|
78
|
-
end
|
79
|
-
end -%>
|
80
|
-
<% end -%>
|
81
|
-
|
82
|
-
<% if face.respond_to? :indirection -%>
|
83
|
-
TERMINI: <%= face.class.terminus_classes(face.indirection.name).join(", ") %>
|
84
|
-
|
85
|
-
<% end -%>
|
86
|
-
See 'puppet man <%= face.name %>' or 'man puppet-<%= face.name %>' for full help.
|
@@ -1,114 +0,0 @@
|
|
1
|
-
<%# encoding: UTF-8%>
|
2
|
-
<% if face.deprecated? -%>
|
3
|
-
<%= "Warning: 'puppet #{face.name}' is deprecated and will be removed in a future release." %>
|
4
|
-
<% end %>
|
5
|
-
<% if face.synopsis -%>
|
6
|
-
USAGE: <%= face.synopsis %>
|
7
|
-
|
8
|
-
<% end -%>
|
9
|
-
<%= (face.short_description || face.summary || "undocumented subcommand").strip %>
|
10
|
-
|
11
|
-
OPTIONS:
|
12
|
-
<%# Remove these options once we can introspect them normally. -%>
|
13
|
-
--render-as FORMAT - The rendering format to use.
|
14
|
-
--verbose - Whether to log verbosely.
|
15
|
-
--debug - Whether to log debug information.
|
16
|
-
<% optionroom = 30
|
17
|
-
summaryroom = 80 - 5 - optionroom
|
18
|
-
|
19
|
-
disp_glob_opts = face.display_global_options.uniq
|
20
|
-
unless disp_glob_opts.empty?
|
21
|
-
disp_glob_opts.sort.each do |name|
|
22
|
-
option = name
|
23
|
-
desc = Puppet.settings.setting(option).desc
|
24
|
-
type = Puppet.settings.setting(option).default
|
25
|
-
type ||= Puppet.settings.setting(option).type.to_s.upcase -%>
|
26
|
-
<%= "--#{option} #{type}".ljust(optionroom) + ' - ' -%>
|
27
|
-
<% if !(desc) -%>
|
28
|
-
undocumented option
|
29
|
-
<% elsif desc.length <= summaryroom -%>
|
30
|
-
<%= desc %>
|
31
|
-
<% else
|
32
|
-
words = desc.split
|
33
|
-
wrapped = ['']
|
34
|
-
i = 0
|
35
|
-
words.each do |word|
|
36
|
-
if wrapped[i].length + word.length <= summaryroom
|
37
|
-
wrapped[i] << word + ' '
|
38
|
-
else
|
39
|
-
i += 1
|
40
|
-
wrapped[i] = word + ' '
|
41
|
-
end
|
42
|
-
end -%>
|
43
|
-
<%= wrapped.shift.strip %>
|
44
|
-
<% wrapped.each do |line| -%>
|
45
|
-
<%= (' ' * (optionroom + 5) ) + line.strip %>
|
46
|
-
<% end
|
47
|
-
end
|
48
|
-
end
|
49
|
-
end
|
50
|
-
unless face.options.empty?
|
51
|
-
face.options.sort.each do |name|
|
52
|
-
option = face.get_option name -%>
|
53
|
-
<%= " " + option.optparse.join(" | ")[0,(optionroom - 1)].ljust(optionroom) + ' - ' -%>
|
54
|
-
<% if !(option.summary) -%>
|
55
|
-
undocumented option
|
56
|
-
<% elsif option.summary.length <= summaryroom -%>
|
57
|
-
<%= option.summary %>
|
58
|
-
<%
|
59
|
-
else
|
60
|
-
words = option.summary.split
|
61
|
-
wrapped = ['']
|
62
|
-
i = 0
|
63
|
-
words.each do |word|
|
64
|
-
if wrapped[i].length + word.length <= summaryroom
|
65
|
-
wrapped[i] << word + ' '
|
66
|
-
else
|
67
|
-
i += 1
|
68
|
-
wrapped[i] = word + ' '
|
69
|
-
end
|
70
|
-
end
|
71
|
-
-%>
|
72
|
-
<%= wrapped.shift.strip %>
|
73
|
-
<% wrapped.each do |line| -%>
|
74
|
-
<%= (' ' * (optionroom + 5) ) + line.strip %>
|
75
|
-
<% end
|
76
|
-
end
|
77
|
-
end -%>
|
78
|
-
<% end -%>
|
79
|
-
|
80
|
-
ACTIONS:
|
81
|
-
<% padding = face.actions.map{|x| x.to_s.length}.max + 2
|
82
|
-
summaryroom = 80 - (padding + 4)
|
83
|
-
face.actions.each do |actionname|
|
84
|
-
action = face.get_action(actionname) -%>
|
85
|
-
<%= action.name.to_s.ljust(padding) + ' ' -%>
|
86
|
-
<% if !(action.summary) -%>
|
87
|
-
undocumented action
|
88
|
-
<% elsif action.summary.length <= summaryroom -%>
|
89
|
-
<%= action.summary %>
|
90
|
-
<% else
|
91
|
-
words = action.summary.split
|
92
|
-
wrapped = ['']
|
93
|
-
i = 0
|
94
|
-
words.each do |word|
|
95
|
-
if wrapped[i].length + word.length <= summaryroom
|
96
|
-
wrapped[i] << word + ' '
|
97
|
-
else
|
98
|
-
i += 1
|
99
|
-
wrapped[i] = word + ' '
|
100
|
-
end
|
101
|
-
end
|
102
|
-
-%>
|
103
|
-
<%= wrapped.shift.strip %>
|
104
|
-
<% wrapped.each do |line| -%>
|
105
|
-
<%= (' ' * (padding + 4) ) + line.strip %>
|
106
|
-
<% end
|
107
|
-
end
|
108
|
-
end -%>
|
109
|
-
|
110
|
-
<% if face.respond_to? :indirection -%>
|
111
|
-
TERMINI: <%= face.class.terminus_classes(face.indirection.name).join(", ") %>
|
112
|
-
|
113
|
-
<% end -%>
|
114
|
-
See 'puppet man <%= face.name %>' or 'man puppet-<%= face.name %>' for full help.
|
@@ -1,16 +0,0 @@
|
|
1
|
-
<%# encoding: UTF-8%>
|
2
|
-
Usage: puppet <subcommand> [options] <action> [options]
|
3
|
-
|
4
|
-
Available subcommands:
|
5
|
-
<%# NOTE: this is probably not a good long-term solution for this. We're only iterating over
|
6
|
-
applications to find the list of things we need to show help for... this works for now
|
7
|
-
because faces can't be run without an application stub. However, when #6753 is resolved,
|
8
|
-
all of the application stubs for faces will go away, and this will need to be updated
|
9
|
-
to reflect that. --cprice 2012-04-26 %>
|
10
|
-
<% all_application_summaries.each do |appname, summary| -%>
|
11
|
-
<%= appname.to_s.ljust(16) %> <%= summary %>
|
12
|
-
<% end -%>
|
13
|
-
|
14
|
-
See 'puppet help <subcommand> <action>' for help on a specific subcommand action.
|
15
|
-
See 'puppet help <subcommand>' for help on a specific subcommand.
|
16
|
-
Puppet v<%= Puppet.version %>
|
@@ -1,152 +0,0 @@
|
|
1
|
-
<%# encoding: UTF-8%>
|
2
|
-
puppet-<%= face.name %>(8) -- <%= face.summary || "Undocumented subcommand." %>
|
3
|
-
<%= '=' * (_erbout.length - 1) %>
|
4
|
-
|
5
|
-
<% if face.synopsis -%>
|
6
|
-
SYNOPSIS
|
7
|
-
--------
|
8
|
-
<%= face.synopsis %>
|
9
|
-
|
10
|
-
<% end
|
11
|
-
if face.description -%>
|
12
|
-
DESCRIPTION
|
13
|
-
-----------
|
14
|
-
<%= face.description.strip %>
|
15
|
-
|
16
|
-
<% end -%>
|
17
|
-
OPTIONS
|
18
|
-
-------
|
19
|
-
Note that any setting that's valid in the configuration
|
20
|
-
file is also a valid long argument, although it may or may not be
|
21
|
-
relevant to the present action. For example, `server` and `run_mode` are valid
|
22
|
-
settings, so you can specify `--server <servername>`, or
|
23
|
-
`--run_mode <runmode>` as an argument.
|
24
|
-
|
25
|
-
See the configuration file documentation at
|
26
|
-
<https://docs.puppetlabs.com/puppet/latest/reference/configuration.html> for the
|
27
|
-
full list of acceptable parameters. A commented list of all
|
28
|
-
configuration options can also be generated by running puppet with
|
29
|
-
`--genconfig`.
|
30
|
-
|
31
|
-
* --render-as FORMAT:
|
32
|
-
The format in which to render output. The most common formats are `json`,
|
33
|
-
`s` (string), `yaml`, and `console`, but other options such as `dot` are
|
34
|
-
sometimes available.
|
35
|
-
* --verbose:
|
36
|
-
Whether to log verbosely.
|
37
|
-
* --debug:
|
38
|
-
Whether to log debug information.
|
39
|
-
<% unless face.display_global_options.empty?
|
40
|
-
face.display_global_options.uniq.sort.each do |name|
|
41
|
-
option = name
|
42
|
-
desc = Puppet::Util::Docs.scrub(Puppet.settings.setting(option).desc)
|
43
|
-
type = Puppet.settings.setting(option).default
|
44
|
-
type ||= Puppet.settings.setting(option).type.to_s.upcase -%>
|
45
|
-
<%= "* --#{option} #{type}" %>:
|
46
|
-
<%= (desc || 'Undocumented setting.').gsub(/^/, ' ') %>
|
47
|
-
<% end
|
48
|
-
end -%>
|
49
|
-
<% unless face.options.empty?
|
50
|
-
face.options.sort.each do |name|
|
51
|
-
option = face.get_option name -%>
|
52
|
-
<%= "* " + option.optparse.join(" | " ) %>:
|
53
|
-
<%= (option.description || option.summary || "Undocumented option.").gsub(/^/, ' ') %>
|
54
|
-
<% end
|
55
|
-
end -%>
|
56
|
-
|
57
|
-
ACTIONS
|
58
|
-
-------
|
59
|
-
<% face.actions.each do |actionname|
|
60
|
-
action = face.get_action(actionname) -%>
|
61
|
-
* `<%= action.name.to_s %>` - <%= action.summary %>:
|
62
|
-
<% if action.synopsis -%>
|
63
|
-
`SYNOPSIS`
|
64
|
-
|
65
|
-
<%= action.synopsis %>
|
66
|
-
|
67
|
-
<% end -%>
|
68
|
-
`DESCRIPTION`
|
69
|
-
|
70
|
-
<% if action.description -%>
|
71
|
-
<%= action.description.gsub(/^/, ' ') %>
|
72
|
-
<% else -%>
|
73
|
-
<%= action.summary || "Undocumented action." %>
|
74
|
-
<% end -%>
|
75
|
-
|
76
|
-
<% unique_options = action.options - face.options
|
77
|
-
unique_display_global_options = action.display_global_options - face.display_global_options
|
78
|
-
unless unique_options.empty? and unique_display_global_options.empty? -%>
|
79
|
-
`OPTIONS`
|
80
|
-
<% unique_display_global_options.uniq.sort.each do |name|
|
81
|
-
option = name
|
82
|
-
desc = Puppet::Util::Docs.scrub(Puppet.settings.setting(option).desc)
|
83
|
-
type = Puppet.settings.setting(option).default
|
84
|
-
type ||= Puppet.settings.setting(option).type.to_s.upcase -%>
|
85
|
-
<%= "<--#{option} #{type}>" %> -
|
86
|
-
<%= (desc || "Undocumented setting.").gsub(/^/, ' ') %>
|
87
|
-
<% end -%>
|
88
|
-
<% unique_options.sort.each do |name|
|
89
|
-
option = action.get_option name
|
90
|
-
text = (option.description || option.summary || "Undocumented option.").chomp + "\n" -%>
|
91
|
-
<%= '<' + option.optparse.join("> | <") + '>' %> -
|
92
|
-
<%= text.gsub(/^/, ' ') %>
|
93
|
-
<% end -%>
|
94
|
-
|
95
|
-
<% end -%>
|
96
|
-
<% if action.returns -%>
|
97
|
-
`RETURNS`
|
98
|
-
|
99
|
-
<%= action.returns.gsub(/^/, ' ') %>
|
100
|
-
|
101
|
-
<% end
|
102
|
-
if action.notes -%>
|
103
|
-
`NOTES`
|
104
|
-
|
105
|
-
<%= action.notes.gsub(/^/, ' ') %>
|
106
|
-
|
107
|
-
<% end
|
108
|
-
end
|
109
|
-
if face.examples or face.actions.any? {|actionname| face.get_action(actionname).examples} -%>
|
110
|
-
EXAMPLES
|
111
|
-
--------
|
112
|
-
<% end
|
113
|
-
if face.examples -%>
|
114
|
-
<%= face.examples %>
|
115
|
-
|
116
|
-
<% end
|
117
|
-
face.actions.each do |actionname|
|
118
|
-
action = face.get_action(actionname)
|
119
|
-
if action.examples -%>
|
120
|
-
`<%= action.name.to_s %>`
|
121
|
-
|
122
|
-
<%= action.examples.strip %>
|
123
|
-
|
124
|
-
<% end
|
125
|
-
end -%>
|
126
|
-
|
127
|
-
<% if face.notes or face.respond_to? :indirection -%>
|
128
|
-
NOTES
|
129
|
-
-----
|
130
|
-
<% if face.notes -%>
|
131
|
-
<%= face.notes.strip %>
|
132
|
-
|
133
|
-
<% end # notes
|
134
|
-
if face.respond_to? :indirection -%>
|
135
|
-
This subcommand is an indirector face, which exposes `find`, `search`, `save`,
|
136
|
-
and `destroy` actions for an indirected subsystem of Puppet. Valid termini for
|
137
|
-
this face include:
|
138
|
-
|
139
|
-
* `<%= face.class.terminus_classes(face.indirection.name).join("`\n* `") %>`
|
140
|
-
|
141
|
-
<% end # indirection
|
142
|
-
end # notes or indirection
|
143
|
-
unless face.authors.empty? -%>
|
144
|
-
AUTHOR
|
145
|
-
------
|
146
|
-
<%= face.authors.join("\n").gsub(/^/, ' * ') %>
|
147
|
-
|
148
|
-
<% end -%>
|
149
|
-
COPYRIGHT AND LICENSE
|
150
|
-
---------------------
|
151
|
-
<%= face.copyright %>
|
152
|
-
<%= face.license %>
|
@@ -1,42 +0,0 @@
|
|
1
|
-
# This file was automatically generated on <%= Time.now %>.
|
2
|
-
# Use the 'puppet generate types' command to regenerate this file.
|
3
|
-
|
4
|
-
<%- unless doc.empty? -%>
|
5
|
-
<%- doc.each_line do |line| -%>
|
6
|
-
# <%= line -%>
|
7
|
-
<%- end %>
|
8
|
-
<%- end -%>
|
9
|
-
Puppet::Resource::ResourceType3.new(
|
10
|
-
<%= name %>,
|
11
|
-
[
|
12
|
-
<%- properties.each_with_index do |property, index| -%>
|
13
|
-
<%- unless property.doc.empty? -%>
|
14
|
-
<%- property.doc.each_line do |line| -%>
|
15
|
-
# <%= line -%>
|
16
|
-
<%- end %>
|
17
|
-
<%- end -%>
|
18
|
-
Puppet::Resource::Param(<%= property.type %>, <%= property.name %><% if property.is_namevar? %>, true<% end %>)<% if index + 1 < properties.size %>,
|
19
|
-
|
20
|
-
<%- end -%>
|
21
|
-
<%- end %>
|
22
|
-
],
|
23
|
-
[
|
24
|
-
<%- parameters.each_with_index do |parameter, index| -%>
|
25
|
-
<%- unless parameter.doc.empty? -%>
|
26
|
-
<%- parameter.doc.each_line do |line| -%>
|
27
|
-
# <%= line -%>
|
28
|
-
<%- end %>
|
29
|
-
<%- end -%>
|
30
|
-
Puppet::Resource::Param(<%= parameter.type %>, <%= parameter.name %><% if parameter.is_namevar? %>, true<% end %>)<% if index + 1 < parameters.size %>,
|
31
|
-
|
32
|
-
<%- end -%>
|
33
|
-
<%- end %>
|
34
|
-
],
|
35
|
-
{
|
36
|
-
<%- title_patterns.each_with_index do |mapping, index| -%>
|
37
|
-
<%= mapping[0] %> => <%= mapping[1] %><%= "," if index + 1 < title_patterns.size %>
|
38
|
-
<%- end -%>
|
39
|
-
},
|
40
|
-
<%= isomorphic -%>,
|
41
|
-
<%= capability -%>
|
42
|
-
)
|