Rakefile in infrataster-0.1.3 vs Rakefile in infrataster-0.1.4
- old
+ new
@@ -18,10 +18,13 @@
end
namespace :integration do
integration_dir = 'spec/integration'
+ task :clean => ['destroy_vm', 'remove_berks'] do
+ end
+
task :prepare => ['download_browsermob', 'start_vm'] do
end
task :download_browsermob do
dir = File.join(integration_dir, 'vm/vendor/browsermob')
@@ -53,9 +56,19 @@
end
task :start_vm => ['berks_vendor'] do
puts yellow('Starting VM...')
system '/usr/bin/vagrant up'
+ end
+
+ task :destroy_vm do
+ puts yellow('Destroying VM...')
+ system '/usr/bin/vagrant destroy -f'
+ end
+
+ task :remove_berks do
+ dir = File.join(integration_dir, 'vm/vendor/cookbooks')
+ FileUtils.rm_rf(dir)
end
end
end