Permalink
Browse files

Rake task was assuming docs had been generated when they hadn't been.

  • Loading branch information...
1 parent 22dbb3b commit c9d53c562ade0b72c4b31d7ee1c9d99fd51c2d9e @floehopper floehopper committed Jul 4, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 Rakefile
View
4 Rakefile
@@ -114,8 +114,8 @@ end
desc "Generate documentation"
task 'generate_docs' => ['clobber_yardoc', 'yardoc']
-desc "Publish docs to Github (relies on running 'generate_docs' task and committing changes to master branch)"
-task 'publish_docs' do
+desc "Publish docs to gofreerange.com/docs/mocha"
+task 'publish_docs' => 'generate_docs' do
path = "/home/freerange/docs/mocha"
system %{ssh gofreerange.com "sudo rm -fr #{path} && mkdir -p #{path}" && scp -r doc/* gofreerange.com:#{path}}
end

0 comments on commit c9d53c5

Please sign in to comment.