80 Commits

Author SHA1 Message Date
Mitchell Hashimoto
ebf1fa2fb1 Check if file exists on root path traversal [closes GH-182] 2010-10-08 18:23:38 -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
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
5ce43a8ae0 Utilize pathname when available instead of doing just a File.join 2010-09-11 10:42:03 -07: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
9a0834d263 Make environment tests fast again 2010-09-07 01:03:27 -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
f24094bba8 Converted more tests to new vagrant env helpers and removed unused code in ResourceLogger 2010-09-04 10:47:22 -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
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
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
58237db675 Remove unused methods in environment and their translations 2010-08-26 23:30:24 -07:00
Mitchell Hashimoto
afab53bf9f Scope errors into the Errors namespace. VirtualBox version errors converted to I18n 2010-08-26 23:21:28 -07:00
Mitchell Hashimoto
6d15a1dd64 Moved the resource name to a helper method in environment 2010-08-26 20:22:20 -07:00
Mitchell Hashimoto
aaac5fbf1e Get rid of all Ruby warnings in Vagrant 2010-08-25 23:21:23 -07:00
Mitchell Hashimoto
1facebc3d9 Got rid of global Vagrant.ui. Moved to Environment#ui 2010-08-24 10:37:00 -07:00
Mitchell Hashimoto
0ddda8f591 Remove all old commands. They're all being rewritten 2010-08-24 09:19:16 -07:00
Mitchell Hashimoto
cd82c8d7f8 Get rid of the PROJECT_ROOT constant. 2010-08-23 21:33:14 -07:00
Mitchell Hashimoto
555b5af2a8 Remove Environment#require_box since it is no longer used 2010-07-23 22:37:38 -07:00
Mitchell Hashimoto
8e82fb2691 Fix tests so they run on Ruby 1.9.2 2010-07-19 20:32:07 -07:00
Mitchell Hashimoto
cb730c3410 If SIGINT is called during a sequence with an import, VM is properly destroyed 2010-07-18 08:39:31 -07:00
Mitchell Hashimoto
e2badeb9e1 Concepts of "Hosts" introduced, preparing for host-specific behavior. 2010-07-10 22:07:10 -07:00
Mitchell Hashimoto
bad5ba559f Actions on Environment and making them runnable 2010-07-04 03:48:16 +02:00
Mitchell Hashimoto
e751d3e21a Fix environment tests for new VB 3.2 min. requirement 2010-06-20 02:29:15 -07:00
Mitchell Hashimoto
eb30074eea Oops, File.rm => File.delete 2010-05-29 13:21:57 -07:00
Mitchell Hashimoto
46e9250f09 Remove the dotfile (.vagrant) if no more active VMs exist 2010-05-29 12:15:55 -07:00
Mitchell Hashimoto
687b925d2e Concept of a 'primary' VM in a multi-VM environment added. This VM will be the default for actions in a multi-VM environment. 2010-05-27 22:54:11 -07:00
Mitchell Hashimoto
6e757e7ab7 Remove logger from the VM and put it on the environment 2010-05-20 20:35:15 -07:00
Mitchell Hashimoto
470c8de099 Environment uses new logger 2010-05-20 16:36:17 -07:00
Mitchell Hashimoto
709c50e7b6 vagrant status updated to work with multi-VM. Global status not yet functional. 2010-05-16 17:40:40 -07:00
Mitchell Hashimoto
0314e6ef6c Persist/depersist VM methods replaced with dotfile updates. Active list information disabled for now. 2010-05-16 16:53:56 -07:00
Mitchell Hashimoto
33bfe75cbd Environment loads blank VMs for non-created VMs. 2010-05-15 01:34:31 -07:00