From b1a16a7b3ddacd37ebc4799df9cd39c46f2af7d8 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 9 Apr 2010 21:39:38 -0700 Subject: [PATCH] `vagrant down` is now `vagrant destroy` --- bin/{vagrant-down => vagrant-destroy} | 2 +- lib/vagrant/commands.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) rename bin/{vagrant-down => vagrant-destroy} (92%) diff --git a/bin/vagrant-down b/bin/vagrant-destroy similarity index 92% rename from bin/vagrant-down rename to bin/vagrant-destroy index 58f865c8a..480bada7f 100755 --- a/bin/vagrant-down +++ b/bin/vagrant-destroy @@ -22,6 +22,6 @@ Destroys the vagrant environment. EOS run do |command| - Vagrant::Commands.execute(:down) + Vagrant::Commands.execute(:destroy) end end diff --git a/lib/vagrant/commands.rb b/lib/vagrant/commands.rb index 0c5ddf401..33dd0201e 100644 --- a/lib/vagrant/commands.rb +++ b/lib/vagrant/commands.rb @@ -29,13 +29,13 @@ module Vagrant end end - # Tear down a vagrant instance. This not only shuts down the instance + # Destroys a vagrant instance. This not only shuts down the instance # (if its running), but also deletes it from the system, including the # hard disks associated with it. # # This command requires that an instance already be brought up with # `vagrant up`. - def down + def destroy env.require_persisted_vm env.vm.destroy end