87 Commits

Author SHA1 Message Date
Mitchell Hashimoto
fd54cf0809 vagrant ssh now uses a direct exec() [GH-751]
Before, I was using the "super exec" by passing a single string.
Ruby handles this by actually invoking the command with a shell.
This causes some odd issues with file pathes with spaces and
expansion and other things. This no longer happens.
2012-02-06 15:27:28 -05:00
Mitchell Hashimoto
3eff28ac0d Don't strip color codes with ANSI escape code remover 2012-02-05 13:30:21 +01:00
Mitchell Hashimoto
6c1eafe00e Update CHANGELOG 2012-02-05 13:23:53 +01:00
Joe Kutner
36f43fa676 moved the closing of subprocess streams to after the process has finished. 2012-02-05 13:21:50 +01:00
Mitchell Hashimoto
3a5f0cefb3 Remove ANSI escape codes from SSH output
Note that the ANSI escape code removal is not complete,
but is fairly comprehensive in terms of the codes that
really muck with the terminal layout.
2012-01-23 19:29:07 -08:00
Mitchell Hashimoto
d1e78f791d Remove test warnings, add ANSI escape code remover 2012-01-23 19:24:32 -08:00
Mitchell Hashimoto
97235ee080 Clean up some impl [GH-666] 2012-01-20 11:25:39 -08:00
Jarmo Pertman
b9046a5594 enable colors on Windows when using ANSICON 2012-01-20 11:21:16 -08:00
Mitchell Hashimoto
3f3476f323 Use symbol as a hash key for subprocess. Guarantees we always get a string back. 2012-01-19 17:24:22 -08:00
Mitchell Hashimoto
ef37f692bd Revert the check for duplicate Vagrantfiles.
This is just tricky with case sensitive/insensitive file systems.
Reverting since it doesn't seem worth it.
2012-01-08 23:15:18 -08:00
Mitchell Hashimoto
e85095d1bf Subprocess uses readpartial on IO for Windows [GH-610]
Windows doesn't support read_nonblock.
2012-01-05 23:48:30 -08:00
Mitchell Hashimoto
97f7fa633d Re-implement how networking is done internally 2012-01-02 19:51:38 -08:00
Mitchell Hashimoto
0d2cf4bbe7 Upgrade to ChildProcess 0.2.4 for LaunchError 2011-12-26 19:55:10 -08:00
Mitchell Hashimoto
fd331ee785 Util::Busy calls the callbacks in reverse order 2011-12-26 17:03:29 -08:00
Mitchell Hashimoto
cc9abc8b9b Fix up some subprocess comments 2011-12-22 21:55:57 -08:00
Mitchell Hashimoto
963bdff9fd Use Vagrant::Util::Subprocess for acceptance tests 2011-12-22 21:46:43 -08:00
Mitchell Hashimoto
9f498ccb06 Subprocess now works properly with Ruby 1.8.7 2011-12-22 16:22:41 -08:00
Mitchell Hashimoto
698ad0af7e Import progress works again 2011-12-22 11:29:58 -08:00
Mitchell Hashimoto
79460f6122 Subprocess: Check if data is empty after the process exits as well 2011-12-21 22:12:22 -08:00
Mitchell Hashimoto
271c3827a1 Subprocess: catch any stdout/stderr left over after process exits 2011-12-21 21:58:23 -08:00
Mitchell Hashimoto
63720cc750 Fix reload with VBoxManage 2011-12-21 16:48:19 -08:00
Mitchell Hashimoto
8eb1770b9d Fix issue where we may not get the full output in a subprocess 2011-12-21 14:28:43 -08:00
Mitchell Hashimoto
9debf5abe9 Attach a driver to each VM. Use that to detect VirtualBox. 2011-12-20 21:20:45 -08:00
Mitchell Hashimoto
05ae297fd2 Copy insecure private key to user owned directory [GH-580] 2011-12-11 16:32:25 -08:00
John Watson
8a0a1bddb5 Proper support for NFS in FreeBSD 2011-11-24 21:45:23 -07:00
Eriksen Costa
82c679b9a5 Kernel.exec still failing in OS X Leopard [closes GH-544] 2011-11-24 21:32:44 -07:00
Mitchell Hashimoto
bb06a20843 Add rake acceptance:boxes to download required boxes for tests 2011-11-13 13:37:30 -08:00
Mitchell Hashimoto
1c2f80fab4 Distro dispatch for Host classes 2011-08-27 23:39:02 -07:00
Mitchell Hashimoto
cf115c10b1 Fix errno not defined [closes GH-465] 2011-08-13 18:54:32 -07:00
Mitchell Hashimoto
7df5cf6c9d Fix some issues with the atomic counter and chef-solo 2011-08-03 21:28:29 -07:00
Mitchell Hashimoto
4c6673270a Ruby 1.8 compatibility 2011-07-11 20:13:19 -07:00
Mitchell Hashimoto
0db2ec9d43 Remove ResourceLogger and PlainLogger 2011-07-10 15:35:45 -07:00
Mitchell Hashimoto
050677b359 ResourceLogger doesn't need to be thread-safe. Vagrant is not multi-threaded. 2011-07-10 14:52:22 -07:00
Mitchell Hashimoto
5143556065 Standardize on Util::Platform 2011-07-09 16:51:04 -07:00
Mitchell Hashimoto
1aed9f0f38 Remove leopard/tiger checking and just retry exec using safe_exec 2011-07-09 16:37:12 -07:00
Mitchell Hashimoto
729d62d1ea Chef solo no longer overwrites share folders when multiple provisioners exist 2011-07-07 21:38:07 -07:00
Mitchell Hashimoto
234c47a3a7 Retryable can take multiple exceptions to retry on 2011-04-19 22:24:52 -07:00
Mitchell Hashimoto
0953c41446 Some stylistic changes regarding arch commit 2011-04-19 22:04:55 -07:00
Tim Joseph Dumol
2c091c98cc Added Arch Linux as under vagrant/hosts
Added NFS support for Arch Linux under vagrant/hosts by adding
vagrant/hosts/arch and a platform test for Arch Linux.
2011-04-19 22:03:21 -07:00
Mitchell Hashimoto
8d529931ef Be gone glob loader! Move everything to autoload or explicit require. 2011-01-07 01:12:16 -08:00
Mitchell Hashimoto
c9f14d6dc9 Use RbConfig instead of Config, latter is deprecated 2010-12-18 20:02:54 -08:00
Mitchell Hashimoto
3f2f5685b2 Platform helpers to detect 64-bit and 32-bit CPU. 2010-12-18 12:02:48 -08:00
Mitchell Hashimoto
8c13d1919e Use rbconfig to get host OS 2010-12-18 11:53:36 -08:00
Brian P O'Rourke
4e2472befc Typo fixes for docs 2010-12-14 22:06:15 -08:00
Mitchell Hashimoto
0fcc1150c5 Revert "Instead of using Kernel#system, use custom piped solution"
This reverts commit 171f4184c0a698c4a6b05767accb6002ffcd18a0.
2010-09-29 23:38:07 -07:00
Mitchell Hashimoto
171f4184c0 Instead of using Kernel#system, use custom piped solution 2010-09-27 18:26:42 -07: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
5ce43a8ae0 Utilize pathname when available instead of doing just a File.join 2010-09-11 10:42:03 -07:00
Mitchell Hashimoto
ea35608f64 Retry on SSH#exec! as well 2010-09-09 00:35:02 -07:00
Mitchell Hashimoto
f8e7431899 Retry SSH connect a few times before admitting defeat. 2010-09-09 00:28:21 -07:00