lib/puppet/face/module/generate.rb in puppet-2.7.13 vs lib/puppet/face/module/generate.rb in puppet-2.7.14
- old
+ new
@@ -1,12 +1,14 @@
Puppet::Face.define(:module, '1.0.0') do
action(:generate) do
summary "Generate boilerplate for a new module."
description <<-EOT
- Generate boilerplate for a new module by creating a directory
- pre-populated with a directory structure and files recommended for
- Puppet best practices.
+ Generates boilerplate for a new module by creating the directory
+ structure and files recommended for the Puppet community's best practices.
+
+ A module may need additional directories beyond this boilerplate
+ if it provides plugins, files, or templates.
EOT
returns "Array of Pathname objects representing paths of generated files."
examples <<-EOT
@@ -28,10 +30,10 @@
EOT
arguments "<name>"
when_invoked do |name, options|
- Puppet::Module::Tool::Applications::Generator.run(name, options)
+ Puppet::ModuleTool::Applications::Generator.run(name, options)
end
when_rendering :console do |return_value|
return_value.map {|f| f.to_s }.join("\n")
end