Default VM name is now properly env cwd folder name

This commit is contained in:
Mitchell Hashimoto 2010-10-04 22:37:38 -07:00
parent f444b32a2f
commit 18835ff629
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,7 @@
## 0.6.4 (unreleased) ## 0.6.4 (unreleased)
- Default VM name is now properly the parent folder of the working directory
of the environment.
- Added method to `TestHelpers` to assist with testing new downloaders. - Added method to `TestHelpers` to assist with testing new downloaders.
- `up --no-provision` works again. This disables provisioning during the - `up --no-provision` works again. This disables provisioning during the
boot process. boot process.

View File

@ -27,7 +27,7 @@ Vagrant::Config.run do |config|
config.vm.customize do |vm| config.vm.customize do |vm|
# Make VM name the name of the containing folder by default # Make VM name the name of the containing folder by default
vm.name = File.basename(File.expand_path("../", Vagrant.source_root)) + "_#{Time.now.to_i}" vm.name = File.basename(config.env.cwd) + "_#{Time.now.to_i}"
end end
# Share the root folder. This can then be overridden by # Share the root folder. This can then be overridden by