Permalink
Browse files

Brute force publishing to gofreerange.com.

  • Loading branch information...
floehopper committed May 4, 2012
1 parent 8f07a70 commit 18635842c2120ef4d35fa2c9d4deb46bb92cd4d3
Showing with 2 additions and 1 deletion.
  1. +2 −1 Rakefile
View
@@ -116,7 +116,8 @@ 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
- `scp -r doc/* gofreerange.com:/home/freerange/docs/mocha && ssh gofreerange.com "sudo su - freerange -c 'sudo chmod -R g+w /home/freerange/docs/mocha'"`
+ path = "/home/freerange/docs/mocha"
+ system %{ssh gofreerange.com "sudo rm -fr #{path} && mkdir -p #{path}" && scp -r doc/* gofreerange.com:#{path}}
end
task 'release' => 'default' do

0 comments on commit 1863584

Please sign in to comment.