Mitchell Hashimoto
27491b554c
Remove thor from requirements. Start revamping Vagrant::CLI
2011-12-16 23:34:30 -08:00
Mitchell Hashimoto
5f567f30d8
Provisioner output is now colorized based on stdout/stderr [GH-595]
2011-12-16 17:55:12 -08:00
Mitchell Hashimoto
f37778c848
Don't output json_class with the config json
2011-12-16 17:38:19 -08:00
Mitchell Hashimoto
7157bd9cdb
Re-namespace messages for systems to the vagrant.guest
2011-12-15 21:07:43 -08:00
Mitchell Hashimoto
1fcca71ce9
Re-namespace all systems to the Vagrant::Guest module
2011-12-15 21:05:19 -08:00
Mitchell Hashimoto
5fe50c8b5d
Change config.vm.system to config.vm.guest. Rename internals.
2011-12-15 20:55:16 -08:00
Mitchell Hashimoto
eda286b476
Config classes are registered via a registry now
2011-12-15 20:32:33 -08:00
Mitchell Hashimoto
7ab6ab31f8
Another tweak to chef to get it to work with new system
2011-12-14 23:37:47 -08:00
Mitchell Hashimoto
345ee35e16
When import recovers, don't validate when calling destroy
2011-12-14 23:35:46 -08:00
Mitchell Hashimoto
a23ebf7220
Fix chef configuration
2011-12-14 23:31:21 -08:00
Mitchell Hashimoto
e602af8c3a
Convert chef provisioners to new format
2011-12-14 23:19:46 -08:00
Mitchell Hashimoto
e5303a82e0
Autoload provisioners.
2011-12-14 22:49:14 -08:00
Mitchell Hashimoto
b428072bb5
Provisioners use the registry. Cleaned up the way config classes are searched for.
2011-12-14 22:43:45 -08:00
Mitchell Hashimoto
9e4475cb77
Test running shell scripts inline
2011-12-14 19:02:10 -08:00
Mitchell Hashimoto
6dbade0fc6
Get shell provisioning working again, acceptance test to prove it
2011-12-13 23:45:56 -08:00
Mitchell Hashimoto
ee33588d10
Clean up system loading quite a bit
2011-12-12 00:03:28 -08:00
Mitchell Hashimoto
c66d846cb7
Fix issue which caused NFS to not work with new config
2011-12-11 23:30:17 -08:00
Mitchell Hashimoto
fd9b752938
Make host class available to all actions
2011-12-11 23:27:53 -08:00
Mitchell Hashimoto
daeb7ea726
Send new `id` element into NFS methods for hosts
2011-12-11 23:26:04 -08:00
Mitchell Hashimoto
cdc01c449d
Re-order things in vagrant.rb slightly
2011-12-11 23:24:23 -08:00
Mitchell Hashimoto
668bab0ba9
Better host loading scheme
2011-12-11 23:22:44 -08:00
Mitchell Hashimoto
b8d40ea463
Registry is enumerable
2011-12-11 18:29:42 -08:00
Mitchell Hashimoto
e201d9cacf
Rename action registry to just Vagrant::Registry
2011-12-11 18:22:06 -08:00
Mitchell Hashimoto
ad03163eff
Tweak timeouts so SSh detection works
2011-12-11 16:41:51 -08:00
Mitchell Hashimoto
48f0a50e61
More logging in SSH class
2011-12-11 16:39:36 -08:00
Mitchell Hashimoto
e5c2f38d7c
Fix validate calls to provisioners
2011-12-11 16:33:50 -08:00
Mitchell Hashimoto
05ae297fd2
Copy insecure private key to user owned directory [GH-580]
2011-12-11 16:32:25 -08:00
Mitchell Hashimoto
98b8d858c4
Error message for improperly packaged boxes [GH-198]
2011-12-10 21:49:00 -08:00
Mitchell Hashimoto
7d8f6e511b
Fix syntax error
2011-12-10 21:30:54 -08:00
Mitchell Hashimoto
f44f1831ef
Special error message if SCP is unavailable [GH-568]
2011-12-10 21:30:04 -08:00
Mitchell Hashimoto
98448d5557
Merge branch '089'
2011-12-10 21:11:36 -08:00
Mitchell Hashimoto
b67dc75dfc
v0.8.10
2011-12-10 21:08:13 -08:00
Mitchell Hashimoto
00c40f82b1
Return true on ssh up?
2011-12-10 21:07:45 -08:00
Mitchell Hashimoto
c4eeda2025
v0.8.9
2011-12-10 20:43:20 -08:00
Mitchell Hashimoto
b65cb54636
Remove the "echo hello" check because it does nothing.
2011-12-10 20:42:34 -08:00
Hedgehog
a4423270f7
sleeping with the fiSSHes?
2011-12-10 20:33:12 -08:00
Mitchell Hashimoto
99b43fbeb8
Use shutdown instead of `halt` [GH-575]
2011-12-10 20:29:58 -08:00
Mitchell Hashimoto
e9f8e4dc91
Revert 8bb6d375
since it actually didn't help at all.
2011-12-10 20:23:52 -08:00
Mitchell Hashimoto
5762775998
Reorganize little methods and remove unused methods
2011-12-10 20:22:44 -08:00
Mitchell Hashimoto
4006befe7f
Trivial whitespace change
2011-12-10 20:20:01 -08:00
Mitchell Hashimoto
069a1c1348
Try to actually create directory before showing home directory error
2011-12-10 17:37:18 -08:00
Mitchell Hashimoto
d9e2c8b788
Raise a nice error if home directory is not accessible
2011-12-10 17:14:07 -08:00
Mitchell Hashimoto
d05c6f9d61
Get regression working again
2011-12-10 16:38:01 -08:00
Mitchell Hashimoto
baba6af4ff
Resource prefixes in UI output work
2011-12-10 16:17:09 -08:00
Mitchell Hashimoto
40b9254d5a
Environment reloading works
2011-12-10 16:07:28 -08:00
Mitchell Hashimoto
a1d3f8b4dd
Fix typo to get networking working again
2011-12-10 14:27:59 -08:00
Mitchell Hashimoto
448e9429ac
Get rid of broken env.ui calls in actions
2011-12-10 14:23:22 -08:00
Mitchell Hashimoto
697fb7eaaf
Get rid of more env.env calls
2011-12-10 14:22:04 -08:00
Mitchell Hashimoto
9e58e45c69
Fix resume action to work properly
2011-12-10 14:18:40 -08:00
Mitchell Hashimoto
71c39126e5
Fix suspend action to work again
2011-12-10 14:15:18 -08:00
Mitchell Hashimoto
2a7f0d8a85
Return nil if no root path to determine dotfile
2011-12-10 13:56:34 -08:00
Mitchell Hashimoto
6093dcc26d
Fix systems dependence on env
2011-12-10 13:44:45 -08:00
Mitchell Hashimoto
ea7caebe02
Setup the default name for the VM
2011-12-10 13:28:03 -08:00
Mitchell Hashimoto
f2666a9b74
Config validation is back in.
2011-12-10 13:21:45 -08:00
Mitchell Hashimoto
5c6ca57409
Throw an error if a box already exists when calling box.add
2011-12-10 13:09:03 -08:00
Mitchell Hashimoto
2f85fe1d4f
Return proper dotfile path
2011-12-10 13:02:00 -08:00
Mitchell Hashimoto
93e5bc3969
Tweak actions for new runner
2011-12-10 12:52:42 -08:00
Mitchell Hashimoto
b4c5b854e2
SSH working with new changes
2011-12-10 12:49:35 -08:00
Mitchell Hashimoto
bfd93eef4e
Come a lot farther in getting `up` to work again
2011-12-10 09:54:23 -08:00
Mitchell Hashimoto
1758970a53
Fixing up VM actions to try to get them working again
2011-12-09 20:39:08 -08:00
Mitchell Hashimoto
739d5ffb5f
Lazy load attributes for runners. Get box repackage working.
2011-12-09 20:24:34 -08:00
Mitchell Hashimoto
d9321ed4d4
Box destroy works again
2011-12-09 18:06:34 -08:00
Mitchell Hashimoto
d92f3d8c6d
Box add works again with new env stuff
2011-12-09 17:33:30 -08:00
Mitchell Hashimoto
b878f1bd66
class => module Action
2011-12-09 17:23:27 -08:00
Mitchell Hashimoto
3edb9c2269
Move all autoloads for actions into action.rb
2011-12-09 17:19:13 -08:00
Mitchell Hashimoto
56663b5952
Remove dependence on Vagrant::Environment on downloaders
2011-12-09 15:18:43 -08:00
Mitchell Hashimoto
0304f78a84
Fix to runner to get interrupts working again
2011-12-09 14:56:56 -08:00
Mitchell Hashimoto
f261c0571f
Modify box download action to work with new runnerx
2011-12-09 14:55:24 -08:00
Mitchell Hashimoto
3c8261f4ac
Add :ui to the globals for the action runner
2011-12-09 14:50:42 -08:00
Mitchell Hashimoto
b31c3d458c
Action runner supports global parameters
2011-12-09 14:44:43 -08:00
Mitchell Hashimoto
bbb8f0ac2c
Integrate new action runner/registry into Vagrant::Environment
2011-12-09 14:39:39 -08:00
Mitchell Hashimoto
daf711fd80
Separate Vagrant::Action into Runner and Registry
2011-12-09 14:22:03 -08:00
Mitchell Hashimoto
5bfcbcba66
Remove step stuff. Failed experiment for now. Too radical for point release.
2011-12-09 13:40:49 -08:00
Mitchell Hashimoto
b5ae4672b7
Raise exception in edge case
2011-12-09 13:30:04 -08:00
Mitchell Hashimoto
2c73de0043
The proper enter/exit sequence is called for multisteps
2011-12-06 18:45:37 -08:00
Mitchell Hashimoto
822226cae4
MultiStep does not allow composing steps that do not work together
2011-12-06 18:31:07 -08:00
Mitchell Hashimoto
73761dc92a
MultiStep should do input/output validation
2011-12-06 18:19:18 -08:00
Mitchell Hashimoto
7d3746b292
Multistep can now take parameters from any arbitrary step prior.
2011-12-06 09:46:57 -08:00
Mitchell Hashimoto
c5eae41fd8
Revamp Step to be more like a Python with-context
2011-12-05 21:05:41 -08:00
Mitchell Hashimoto
683bbdaa3c
Implement multistep
2011-12-04 18:09:18 -08:00
Mitchell Hashimoto
49d299956f
Add the "Step" abstraction
2011-12-04 17:14:21 -08:00
Mitchell Hashimoto
833dbf8fc4
Remove box dependence on env
2011-12-04 14:06:05 -08:00
Mitchell Hashimoto
8801bc7b1b
Starting to revamp BoxCollection to not depend on env
2011-12-04 11:39:44 -08:00
Mitchell Hashimoto
cf7a5db7e7
More environment.rb cleanup
2011-12-04 11:24:18 -08:00
Mitchell Hashimoto
f8d628148c
Remove all environment `parent` references
2011-12-04 11:16:55 -08:00
Mitchell Hashimoto
e2977e8948
Make VM names symbols again, since they're accessed often.
2011-12-03 19:33:44 -08:00
Mitchell Hashimoto
b61d9a6d3d
load_vms. Broke so many things.
...
I've changed Vagrant::VM to be slightly more in line with what I
imagined. However, doing this change has definitely broken _everything_.
We now slowly must cobble back together based on this new API.
2011-12-03 19:30:42 -08:00
Mitchell Hashimoto
1921ce17e8
Propery load box configuration
2011-12-03 19:17:08 -08:00
Mitchell Hashimoto
99982fb26e
VM-specific configuration now works.
2011-12-03 19:05:50 -08:00
Mitchell Hashimoto
73a672cff1
load_config! is kind of working again.
...
Specifically: Global configuration load appears to be working. More
unit tests should reveal if proper VM configuration is loading.
2011-12-03 18:31:17 -08:00
Mitchell Hashimoto
cb5f6b57f4
Remove Vagrant 0.8.0 transition code.
2011-12-03 18:11:24 -08:00
Mitchell Hashimoto
02cc1447dc
Configuration files are only loaded once
2011-12-03 17:42:16 -08:00
Mitchell Hashimoto
15c56a1f4c
Configuration loads. Lots of refactor to do still.
2011-12-03 17:29:28 -08:00
Mitchell Hashimoto
1a8c4199b2
Introduce Config::Loader
...
Config::Loader will be the new class responsible for loading configuration
and replaces the previous dual-role "Vagrant::Config" played. While this
commit is very early-stage, once this new architecture is flushed out, it
will make loading, using, and extending configuration much easier and cleaner.
Additionally, I believe this will help post Vagrant 1.0 if multi-language
configuration is implemented.
2011-12-03 17:12:48 -08:00
Mitchell Hashimoto
e38e3cc652
Move VAGRANT_LOG logic into vagrant.rb so VAGRANT_LOG is always available
2011-12-03 17:12:07 -08:00
Mitchell Hashimoto
1355487a04
Environment UI class can now be set through the environment init
2011-12-03 16:07:34 -08:00
Mitchell Hashimoto
cb8d00b55f
Move the VM accessible check into more relevant actions
2011-12-03 15:37:13 -08:00
Mitchell Hashimoto
c37f16b754
Remove final logger reference
2011-12-01 21:56:56 -08:00
Mitchell Hashimoto
dd4acb1e3d
Convert remaining logger calls outside of environment to log4r
2011-12-01 21:56:56 -08:00
Mitchell Hashimoto
e4c0a0bf0a
Convert warden to use log4r
2011-12-01 21:56:56 -08:00