Revision b1dad4cd
Added by Tomer Brisker over 7 years ago
lib/tasks/puppet.rake | ||
---|---|---|
require 'yaml'
|
||
|
||
namespace :puppet do
|
||
root = "/"
|
||
# Author: Paul Kelly (paul.ian.kelly@gogglemail.com)
|
||
# Description: The tasks defined in this namespace populate a directory structure with rdocs for the
|
||
# clases defined in puppet.
|
||
namespace :rdoc do
|
||
desc "
|
||
Populates the rdoc tree with information about all the classes in your modules."
|
||
task :generate => [:environment, :prepare] do
|
||
Puppetclass.rdoc root
|
||
end
|
||
desc "
|
||
Optionally creates a copy of the current puppet modules and sanitizes it.
|
||
It should return the directory into which it has copied the cleaned modules"
|
||
task :prepare => :environment do
|
||
root = Puppetclass.prepare_rdoc root
|
||
end
|
||
end
|
||
namespace :migrate do
|
||
desc "Populates the host fields in Foreman based on your StoredConfig DB"
|
||
task :populate_hosts => :environment do
|
Also available in: Unified diff
Fixes #1556, #11615 - Remove puppet rdoc support
Puppet rdoc support has been broken for a long time. Removing it from
Foreman.