Skip to content

Commit

Permalink
Fixed publish_doc
Browse files Browse the repository at this point in the history
  • Loading branch information
DAddYE authored and DAddYE committed Feb 8, 2010
1 parent 103c367 commit 57581b8
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions Rakefile
Expand Up @@ -130,20 +130,16 @@ end

desc "Publish doc on padrino.github.com"
task :publish_doc do
begin
puts "Publishing doc on padrino.github.com ..."
rake_command("readme")
sh 'git clone git@github.com:padrino/padrino.github.com.git'
rake_command("rdoc")
Dir.chdir('padrino.github.com') do
sh 'git add *'
sh 'git commit -m "Updated docs."'
sh 'git push origin master'
end
FileUtils.rm_rf "padrino.github.com"
rescue Exception => e
puts e.message
puts "Publishing doc on padrino.github.com ..."
rake_command("readme")
`git clone git@github.com:padrino/padrino.github.com.git`
rake_command("rdoc")
Dir.chdir('padrino.github.com') do
`git add *`
`git commit -m "Updated docs."`
`git push origin master`
end
FileUtils.rm_rf "padrino.github.com"
end

desc "Release all padrino gems"
Expand Down

0 comments on commit 57581b8

Please sign in to comment.