Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 2080e7c3 authored by Philippe Virouleau's avatar Philippe Virouleau
Browse files

wiki: Add an option to run all generators

parent a3ad9e7b
No related branches found
No related tags found
1 merge request!497wiki: Enrich information for hardware
......@@ -108,7 +108,11 @@ namespace :gen do
options[:output_dir] = PUPPET_ODIR
options[:sites] = ( ENV['SITE'] ? ENV['SITE'].split(',') : ['global'] + G5K_SITES )
if ENV['NAME']
options[:generators] = ENV['NAME'].split(',')
if ENV['NAME'] == "all"
options[:generators] = RefRepo::Gen::Wiki::GLOBAL_GENERATORS.keys
else
options[:generators] = ENV['NAME'].split(',')
end
else
puts "You must specify a generator name using NAME="
exit(1)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment