Skip to content

Commit

Permalink
Add rake task for stopping VMs
Browse files Browse the repository at this point in the history
  • Loading branch information
otahi committed Jun 25, 2015
1 parent 478de96 commit 5f9a3b9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Rakefile
Expand Up @@ -31,6 +31,10 @@ namespace :spec do
task :clean => ['destroy_vm'] do
end

desc 'Stop'
task :stop => ['stop_vm'] do
end

desc 'Prepare'
task :prepare => ['start_vm'] do
end
Expand All @@ -42,6 +46,11 @@ namespace :spec do
end
end

task :stop_vm do
puts yellow('Stopping VM...')
system 'vagrant halt'
end

task :destroy_vm do
puts yellow('Destroying VM...')
Dir.chdir(cwd) do
Expand Down

0 comments on commit 5f9a3b9

Please sign in to comment.