summaryrefslogtreecommitdiffstats
path: root/tasks/rake
diff options
context:
space:
mode:
authorJames Turnbull <james@lovedthanlost.net>2009-03-21 02:22:31 +1100
committerJames Turnbull <james@lovedthanlost.net>2009-03-21 02:22:31 +1100
commit6ddebf4d6f5f1537987cdc15a32f439149d73ce6 (patch)
tree232295b3a9671b0d4ab5a8d67fb61b68dce64505 /tasks/rake
parent33d3624c91b236e237fe194d9df3d9fa324111c3 (diff)
downloadpuppet-6ddebf4d6f5f1537987cdc15a32f439149d73ce6.tar.gz
puppet-6ddebf4d6f5f1537987cdc15a32f439149d73ce6.tar.xz
puppet-6ddebf4d6f5f1537987cdc15a32f439149d73ce6.zip
Fixed #2086 - Fixes to make building tarballs easier
Diffstat (limited to 'tasks/rake')
-rw-r--r--tasks/rake/reductive.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/tasks/rake/reductive.rb b/tasks/rake/reductive.rb
index 2fbd2b4d9..fb0921768 100644
--- a/tasks/rake/reductive.rb
+++ b/tasks/rake/reductive.rb
@@ -208,7 +208,7 @@ class Rake::RedLabProject < Rake::TaskLib
end
@defaulttask = :alltests
- @publishdir = "/opt/rl/docroots/reductivelabs.com/htdocs/downloads"
+ @publishdir = ENV['DOWNLOAD_DIR'] || "/opt/rl/docroots/reductivelabs.com/htdocs/downloads"
@pkgpublishdir = "#{@publishdir}/#{@name}"
@email = "dev@reductivelabs.com"
@@ -248,7 +248,9 @@ class Rake::RedLabProject < Rake::TaskLib
# Publish the html.
task :publish => [:package, :html] do
puts Dir.getwd
- sh %{cp -r html #{self.pkgpublishdir}/apidocs}
+ apidocsdir = "#{@pkgpublishdir}/apidocs"
+ File.makedirs(apidocsdir)
+ sh %{cp -r html #{apidocsdir}}
end
else
warn "No rdoc; skipping html"