Permalink
Browse files

[tests] nuke rake task for test related cleanup

  • Loading branch information...
1 parent 7e4c618 commit bbe557287c18d90d97b9ab749be235d9f25d7f41 @geemus geemus committed Jun 16, 2011
Showing with 13 additions and 0 deletions.
  1. +13 −0 Rakefile
View
@@ -88,6 +88,19 @@ task :real_tests do
tests(false)
end
+task :nuke do
+ Fog.providers.each do |provider|
+ begin
+ compute = Fog::Compute.new(:provider => provider)
+ for server in compute.servers
+ Formatador.display_line("[#{provider}] destroying server #{server.identity}")
+ server.destroy rescue nil
+ end
+ rescue
+ end
+ end
+end
+
desc "Generate RCov test coverage and open in your browser"
task :coverage do
require 'rcov'

0 comments on commit bbe5572

Please sign in to comment.