409 Commits

Author SHA1 Message Date
Mitchell Hashimoto
8ce95318c7 Remove check for OSE version, since with VirtualBox 4 this distinction no longer exists. 2011-01-07 01:32:21 -08:00
Mitchell Hashimoto
9a158cf45a Set VAGRANT_HOME env var to change vagrant home directory 2011-01-06 19:21:23 -08:00
Mitchell Hashimoto
b8c84b67b7 Vagrantfiles are loaded only once, instead of 4+ times [closes GH-238] 2011-01-06 19:00:29 -08:00
Mitchell Hashimoto
e258395346 Rewrite of Vagrant::Config, on the path to fix bug with multiple loading Vagrantfiles 2011-01-06 18:35:58 -08:00
Mitchell Hashimoto
afa9d923d4 Fix some code style 2011-01-04 20:28:04 -08:00
Mitchell Hashimoto
fb8f0c010b Reload config after downloading box during up [closes GH-231] 2010-12-31 21:41:05 -06:00
Mitchell Hashimoto
b0ce015f40 Up VirtualBox version check to 4.0 2010-12-24 19:15:36 -08:00
Mitchell Hashimoto
7c7f5d48fe Don't need to call ".new" on raising exceptions 2010-12-21 20:04:21 -08:00
Mitchell Hashimoto
c3b26dc4bf Show special error if VirtualBox not detected on 64-bit Win 2010-12-18 20:50:32 -08:00
Brian P O'Rourke
e1ed00f14c Enumerate vms according to definiton order. 2010-12-14 22:24:02 -08:00
Mitchell Hashimoto
6bac0a7ab2 Better box verification/error messages. 2010-10-21 17:58:17 -07:00
Mitchell Hashimoto
ef50361f95 Nicer error message when box is not found. [closes GH-195] 2010-10-21 17:50:41 -07:00
Mitchell Hashimoto
92c37f7435 Remove environment_load action chain. It wasn't used. 2010-10-13 18:53:15 -07:00
Mitchell Hashimoto
6337cefb8b Disable Vagrantfile validation completely on load. see coming commits... 2010-10-12 21:08:33 -07:00
Mitchell Hashimoto
ebf1fa2fb1 Check if file exists on root path traversal [closes GH-182] 2010-10-08 18:23:38 -07:00
Mitchell Hashimoto
f90016bb6f Only validate on the second-pass of loading configuration 2010-10-08 10:52:34 -07:00
Mitchell Hashimoto
c6b0fae318 Load sub-VM configuration on first-pass, allowing box loading for sub-VMs. [closes GH-166] [closes GH-181] 2010-10-08 10:34:33 -07:00
Mitchell Hashimoto
48e5f4fb86 Vagrantfiles with only one config.vm.define are now considered multi-VM. 2010-10-08 09:50:34 -07:00
Mitchell Hashimoto
f6db8e5518 Environment documentation 2010-09-23 19:06:47 -07:00
Mitchell Hashimoto
2e3be3789e More documentation and fixed some YARD warnings 2010-09-23 09:53:18 -07:00
Mitchell Hashimoto
d003cc4f32 UI methods no longer automatically translate. Makes it easier for plugin developers. 2010-09-21 18:12:24 -06:00
Mitchell Hashimoto
3b735e545f Change VM loading to be lazy loaded so config can be loaded without VMs 2010-09-21 01:27:36 -06:00
Mitchell Hashimoto
e3ff9c7ac3 Resource logger now logs to a "logs" directory in the home path 2010-09-20 09:58:19 -06:00
Mitchell Hashimoto
e0bf3f2dff Converted final string that used logger to new i18n 2010-09-20 09:43:37 -06:00
Mitchell Hashimoto
ba8307712d Don't require root path to load an environment. (Makes vagrant box commands work again without a Vagrantfile) 2010-09-16 18:14:41 -06:00
Mitchell Hashimoto
0ee21998f6 New BoxCollection class to keep track of all boxes. 2010-09-11 10:17:26 -07:00
Mitchell Hashimoto
4b17ac0f89 Environment#home_path is a Pathname object for easier manipulation 2010-09-11 09:18:33 -07:00
Mitchell Hashimoto
3cca2f1bb4 Config loading test is now powered by real Vagrantfiles, rather than mocks 2010-09-07 11:30:48 -07:00
Mitchell Hashimoto
5f6e3acf40 Require root path on environment load 2010-09-07 10:52:58 -07:00
Mitchell Hashimoto
88fedb419e Update Environment#dotfile_path to take advantage of new Pathname object 2010-09-07 00:28:21 -07:00
Mitchell Hashimoto
fe593c88b8 Environment#cwd and Environment#root_path are now pathname objects for more robust usage 2010-09-07 00:25:52 -07:00
Mitchell Hashimoto
84389580d6 Only run Environment#load! once 2010-09-07 00:07:22 -07:00
Mitchell Hashimoto
1478818939 Run "environment_load" action on environment load 2010-09-06 23:36:48 -07:00
Mitchell Hashimoto
4342c87473 No need to reload the VMs hash if has a parent environment. 2010-09-06 00:09:29 -07:00
Mitchell Hashimoto
ed48170b24 Remove environment "vm_name" property since it was redundant 2010-09-05 23:11:27 -07:00
Mitchell Hashimoto
52a32820db Change the way the config is loaded to be all in one step 2010-09-05 01:13:35 -07:00
Mitchell Hashimoto
53aaa4f264 Environment is lazy loaded for vagrant binary. 2010-09-04 11:10:20 -07:00
Mitchell Hashimoto
260f1dcec4 Refined some tests to use real Vagrantfiles instead of mocks 2010-09-03 19:25:48 -07:00
Mitchell Hashimoto
3470d98fca Load the root path on demand. 2010-09-03 14:59:16 -07:00
Mitchell Hashimoto
b8a4188fa3 Config class is now responsible for loading configuration. Cleans up environment. 2010-09-03 11:16:38 -07:00
Mitchell Hashimoto
57506c8c00 Default cwd to pwd for environment 2010-09-03 09:42:05 -07:00
Mitchell Hashimoto
0f70812142 Load the host on demand in the environment 2010-09-03 00:48:38 -07:00
Mitchell Hashimoto
01df63ef6e Lazy load the environment "actions." Removes one more load from the environment load chain 2010-09-03 00:35:18 -07:00
Mitchell Hashimoto
f72979df79 Added global data hash to environment. "system"-wide data bag for vagrant 2010-09-03 00:21:57 -07:00
Mitchell Hashimoto
d65194d66e Only initialize a logger on the parent environment 2010-09-02 21:24:59 -07:00
Mitchell Hashimoto
52e3c4d3b3 Persisting a VM uuid is now implicitly done by Vagrant::VM 2010-09-02 21:12:11 -07:00
Mitchell Hashimoto
33e2b93139 Some basic cleanup of 'if' logic 2010-09-02 13:02:09 -07:00
Mitchell Hashimoto
2d80c32479 Remove the ActiveList. This will make a comeback using DataStore in the future. 2010-09-02 13:00:47 -07:00
Mitchell Hashimoto
9002b22fac Data store is now a hash and lazy load the local data store on the environment 2010-09-02 11:47:19 -07:00
Mitchell Hashimoto
f00955dfa1 Remove superfluous util module includes 2010-09-01 14:52:44 -07:00