Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: develop
Fetching contributors…

Cannot retrieve contributors at this time

23 lines (20 sloc) 0.675 kb
#-*- mode: ruby; -*-
namespace :box do
[ :lucid, :maverick, :natty, :oneiric, :precise ].each do |release|
[ 32, 64 ].each do |architecture|
flavor = "#{release}#{architecture}"
( @flavors ||= [] ) << flavor
desc "Build #{flavor}"
task flavor do
begin sh "rm -f #{flavor}.box" ; rescue ; end
[ :build, :export, :destroy ].each do |command|
sh "bundle exec vagrant basebox #{command} #{flavor}"
end
begin sh "bundle exec vagrant box remove #{flavor}" ; rescue ; end
sh "bundle exec vagrant box add #{flavor} #{flavor}.box"
end
end
end
desc "Build all"
task :all => @flavors
end
Jump to Line
Something went wrong with that request. Please try again.