Skip to content

Commit

Permalink
add checks for rubyforge ping and non-fastforward in release task
Browse files Browse the repository at this point in the history
  • Loading branch information
quix committed Sep 13, 2008
1 parent 70d686c commit 69ac58e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Rakefile.drake
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,14 @@ task :drake_prerelease => [:clean, :gemspec] do
unless `git status` =~ %r!nothing to commit \(working directory clean\)!
raise "Directory not clean"
end
unless `ping -c2 github.com` =~ %r!0% packet loss!i
raise "No ping for github.com"
unless `git pull` =~ %r!Already up-to-date!
raise "New stuff from remote repository"
end
%w[github.com rubyforge.org].each { |server|
unless `ping -c2 #{server}` =~ %r!0% packet loss!
raise "No ping for #{server}"
end
}
end

task :drake_publish => :rdoc do
Expand Down

0 comments on commit 69ac58e

Please sign in to comment.