Sha256: 3d516fa04a6bbfdfcfe7a19522513933ddc9efccbf88b8eaa6cbc44d1659d585
Contents?: true
Size: 955 Bytes
Versions: 2
Compression:
Stored size: 955 Bytes
Contents
require 'bundler' require 'cucumber/rake/task' Bundler::GemHelper.install_tasks namespace :features do desc 'Downloads and adds vagrant box for testing.' task(:bootstrap) do system('bundle exec vagrant box add vagrant_exec http://cloud-images.ubuntu.com/vagrant/precise/current/precise-server-cloudimg-amd64-vagrant-disk1.box') end Cucumber::Rake::Task.new(:run) do |t| t.cucumber_opts = %w[--format pretty] end desc 'Removes testing vagrant box.' task(:cleanup) do system('bundle exec vagrant box remove --force vagrant_exec') # For some reason, vagrant destroy ID fails for us # so let's just stick to pure VirtualBox `VBoxManage list vms` .split("\n") .select { |line| line =~ /aruba_(default|vagrant)/ } .map { |line| line.match(/\{([\w-]+)\}/)[1] } .each { |uuid| system("VBoxManage unregistervm #{uuid} -delete") } system('bundle exec vagrant global-status --prune') end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
vagrant-exec-0.5.3 | Rakefile |
vagrant-exec-0.5.2 | Rakefile |