Skip to content

Commit

Permalink
we want the new value returned, not in-place
Browse files Browse the repository at this point in the history
  • Loading branch information
fetep committed May 23, 2011
1 parent ad39343 commit 7e3c7b5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ task :doccopy => [:require_output_env] do
if ENV["output"].nil?
raise "No output variable set. Run like: 'rake docs output=path/to/output'"
end
output = ENV["output"].gsub!("VERSION", LOGSTASH_VERSION)
output = ENV["output"].gsub("VERSION", LOGSTASH_VERSION)

Dir.glob("docs/**/*").each do |doc|
dir = File.join(output, File.dirname(doc).gsub(/docs\/?/, ""))
Expand All @@ -289,15 +289,15 @@ task :doccopy => [:require_output_env] do
end

task :docindex => [:require_output_env] do
output = ENV["output"].gsub!("VERSION", LOGSTASH_VERSION)
output = ENV["output"].gsub("VERSION", LOGSTASH_VERSION)
sh "ruby docs/generate_index.rb #{ENV["output"]} > #{output}/index.html"
end

task :docgen => [:require_output_env] do
if ENV["output"].nil?
raise "No output variable set. Run like: 'rake docgen output=path/to/output'"
end
output = ENV["output"].gsub!("VERSION", LOGSTASH_VERSION)
output = ENV["output"].gsub("VERSION", LOGSTASH_VERSION)

sh "find lib/logstash/inputs lib/logstash/filters lib/logstash/outputs -type f -not -name 'base.rb' -a -name '*.rb'| xargs ruby docs/docgen.rb -o #{output}"
end
Expand Down

0 comments on commit 7e3c7b5

Please sign in to comment.