Skip to content
Browse files

Added mCollective subproject

Adjusted build to also build mCollective docs
  • Loading branch information...
1 parent a59ebab commit 8728a1bb2c6f7f3d8132ad5aeeaae865cd11bdd5 @jamtur01 jamtur01 committed Oct 28, 2010
Showing with 15 additions and 5 deletions.
  1. +3 −0 .gitmodules
  2. +10 −5 lib/puppet_docs/generator.rb
  3. +1 −0 marionette-collective
  4. +1 −0 source/mcollective
View
3 .gitmodules
@@ -0,0 +1,3 @@
+[submodule "marionette-collective"]
+ path = marionette-collective
+ url = /home/james/src/marionette-collective/
View
15 lib/puppet_docs/generator.rb
@@ -20,17 +20,22 @@ def initialize(output = nil)
def generate
puts "Logging in #{log_filename}"
- guides = Dir[File.join(view_path, '**/*.{markdown,erb}')].reject { |p| p.include?('#') || p.include?('html') || p.include?('references') }
+ puppet = Dir[File.join(view_path, '**/*.{markdown,erb}')].reject { |p| p.include?('#') || p.include?('html') || p.include?('references') }
+ mcollective = Dir[File.join(view_path, 'mcollective/**/*.{markdown,md}')].reject { |p| p.include?('html') || p.include?('referenes') }
refs = Dir[File.join(view_path, 'references/**/*.{markdown,erb}')].reject { |p| p.include?('#') || p.include?('html') }
if ENV["ONLY"]
only = ENV["ONLY"].split(",").map{|x| x.strip }.map {|o| "#{o}.markdown" }
- guides = guides.find_all {|g| only.include?(g) }
- puts "GENERATING ONLY #{guides.inspect}"
+ puppet = puppet.find_all {|p| only.include?(p) }
+ puts "GENERATING ONLY #{puppet.inspect}"
end
- guides.each do |guide|
- generate_guide(guide)
+ puppet.each do |puppet|
+ generate_guide(puppet)
+ end
+
+ mcollective.each do |mcollective|
+ generate_guide(mcollective)
end
refs.each do |ref|
1 marionette-collective
@@ -0,0 +1 @@
+Subproject commit 3ddd0f578dd66aa13938d6c2a153cf957ea87c39
View
1 source/mcollective

0 comments on commit 8728a1b

Please sign in to comment.
Something went wrong with that request. Please try again.