Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added rake blast command to test all templates

  • Loading branch information...
commit d9e1240ec612b48534e0ff8c77867230c5b87ce3 1 parent 0b05e93
@jedi4ever authored
Showing with 18 additions and 0 deletions.
  1. +18 −0 Rakefile
View
18 Rakefile
@@ -63,3 +63,21 @@ task :iso, [:box_name] do |t,args|
end
end
end
+
+desc 'Run through all templates and build'
+task :blast do
+
+ ve=Veewee::Environment.new()
+ ve.templates.each do |name,template|
+ begin
+ ve.definitions.define("auto",name, { 'force' => true})
+ vd=ve.definitions["auto"]
+ box=ve.providers["virtualbox"].get_box("auto")
+ box.build({"auto" => true,"force" => true })
+ box.validate_vagrant
+ box.destroy
+ rescue Exception => ex
+ puts "Template #{name} failed - #{ex}"
+ end
+ end
+end
Please sign in to comment.
Something went wrong with that request. Please try again.