From b5daf5ae869bfde84c19f919fe811212a8156b70 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 19 Mar 2010 16:08:29 -0700 Subject: [PATCH] `vagrant down` command and associated actions now use the new environment --- lib/vagrant/actions/vm/destroy.rb | 2 +- lib/vagrant/box.rb | 4 +++- lib/vagrant/commands.rb | 6 ++--- lib/vagrant/environment.rb | 4 ++-- test/test_helper.rb | 1 + test/vagrant/actions/vm/destroy_test.rb | 3 +-- test/vagrant/commands_test.rb | 12 +++++++++- test/vagrant/environment_test.rb | 30 +++++++++++++++++++++++++ 8 files changed, 52 insertions(+), 10 deletions(-) diff --git a/lib/vagrant/actions/vm/destroy.rb b/lib/vagrant/actions/vm/destroy.rb index d30d78f41..cd7a34d23 100644 --- a/lib/vagrant/actions/vm/destroy.rb +++ b/lib/vagrant/actions/vm/destroy.rb @@ -15,7 +15,7 @@ module Vagrant end def depersist - Env.depersist_vm(@runner) + @runner.env.depersist_vm end end end diff --git a/lib/vagrant/box.rb b/lib/vagrant/box.rb index f50c0f825..e93d9ba92 100644 --- a/lib/vagrant/box.rb +++ b/lib/vagrant/box.rb @@ -51,7 +51,9 @@ module Vagrant # only be used internally. attr_accessor :temp_path - # The environment which this box belongs to + # The environment which this box belongs to. Although this could + # actually be many environments, this points to the environment + # of a specific instance. attr_accessor :env class <