290 Commits

Author SHA1 Message Date
Teemu Matilainen
1a69306839 core: Respect VAGRANT_HOME everywhere
Use `VAGRANT_HOME`env var also for `Plugin::Manager` etc., not only in
the `Environment` class.
2014-01-15 19:15:49 -03:00
Mitchell Hashimoto
e2ec46bb4d core: environment tests passing on Windows 2014-01-15 11:40:53 -08:00
Mitchell Hashimoto
8652d87865 core: test file writes for home dir perms
Creating directories for some reason was allowed in Windows, but writes
would fail later.
2014-01-15 11:19:13 -08:00
Mitchell Hashimoto
5f832467b3 core: event he default host shuld have proper API 2014-01-07 21:16:48 -08:00
Mitchell Hashimoto
09a425030b core: pass environment into all host caps 2014-01-07 20:34:33 -08:00
Mitchell Hashimoto
93e365bb33 core: Vagrant::Environment uses new host settings 2014-01-07 19:11:08 -08:00
Mitchell Hashimoto
f2c6175d16 Use bundler to load plugins 2014-01-04 16:15:12 -08:00
Teemu Matilainen
ee8f962537 Fix plugin loading
Regression from d354cdd.
2013-12-04 18:25:29 -03:00
Mitchell Hashimoto
d354cdda4a core: request users upgrade plugins if they're old 2013-12-04 11:43:39 -08:00
Mitchell Hashimoto
8d99382993 core: allow custom callables in hooks 2013-11-24 21:07:11 -08:00
Mitchell Hashimoto
ec5727dfe0 core: expose the hook method from the env 2013-11-24 21:02:18 -08:00
Mitchell Hashimoto
f5cc112a4b core: allow hooks to send arbitrary data 2013-11-24 21:01:41 -08:00
Mitchell Hashimoto
3cdc0ef445 core: allow env access in plugin loaded middleware 2013-11-23 16:40:19 -08:00
Mitchell Hashimoto
49b14114a2 core: style nitpick
/cc @fgrehm - I prefer this style. :) No big deal, just pointing it out
2013-11-23 16:39:30 -08:00
Mitchell Hashimoto
1ea39ab605 Merge pull request #2437 from fgrehm/plugins-loaded-hook
core: plugins loaded hook with no vagrantfiles
2013-11-23 16:38:45 -08:00
Mitchell Hashimoto
de9d38de21 core: don't load vagrantfile on plugin command 2013-11-23 13:25:33 -08:00
Fabio Rehm
a0c1cc0231 core: Add spec for running environment hooks with a custom Action::Runner 2013-10-29 13:28:04 -02:00
Fabio Rehm
bbe7b3ffc5 core: Add support for plugins to hook into the environment load process before configurations are parsed 2013-10-29 13:11:08 -02:00
Mitchell Hashimoto
cac28c82de core: Vagrantfile must be file [GH-2216] 2013-09-17 12:42:57 -07:00
Mitchell Hashimoto
d95567e4c7 Revert "core: better cleanup of ".vagrant"" [GH-2201]
This reverts commit 5b42994406f977907fccfdce6e85f5d32d9cd84d.
2013-09-16 20:56:28 -07:00
Mitchell Hashimoto
20c46d020c core: fix interpolation error on v1=>v2 upgrade warinings [GH-2142] 2013-09-06 08:51:03 -07:00
Mitchell Hashimoto
95aba27e59 core: VAGRANT_VAGRANTFILE affects only project vagrantfile [GH-2130] 2013-09-05 14:46:26 -07:00
Mitchell Hashimoto
be25238381 core: Show what machine error messages are for [GH-1668] 2013-09-02 15:53:59 -07:00
Mitchell Hashimoto
5b42994406 core: better cleanup of ".vagrant" 2013-08-29 11:45:57 -07:00
Mitchell Hashimoto
f3bbad8c2e Refactor box collection to support looking for boxes multi-provider 2013-07-19 00:50:00 -04:00
Mitchell Hashimoto
bd378ea2b0 VAGRANT_DOTFILE_PATH [GH-1524] 2013-07-18 11:58:11 -04:00
Mitchell Hashimoto
b68c489991 Fix missing translation for non existent CWD [GH-1947] 2013-07-18 10:43:12 -04:00
Mitchell Hashimoto
04d9872674 Improve the thread safety of BoxCollection 2013-04-19 23:48:05 -06:00
Mitchell Hashimoto
e8d8188474 Error if a box override changes the box setting... 2013-04-19 23:10:17 -06:00
Mitchell Hashimoto
661b982502 Handle box overrides in provider-specific overrides properly [GH-1617] 2013-04-19 23:05:32 -06:00
Mitchell Hashimoto
0f089c5671 --[no-]parallel for vagrant up 2013-04-16 15:22:14 -07:00
Mitchell Hashimoto
f3cf23e873 Ability to specify no parallelism on the environment 2013-04-16 15:13:00 -07:00
Mitchell Hashimoto
efaabea5c0 Use vagrant tmp directory for boxes [GH-1442] 2013-04-07 14:48:56 -07:00
Mitchell Hashimoto
96ebd3e8f7 Providers can support multiple box formats if they choose to.
Currently, providers must match a box format exactly the same
as that provider's name. i.e. the virtuabox provider needs a
"virtualbox" box and the "vmware_fusion" provider needs a
"vmware_fusion" box. Now, the provider can specify what the box format
is they want and support multiple if wanted.

Other box formats are specified in the provider definition within
a plugin:

    class Plugin < Vagrant.plugin("2", "provider")
      # ... other stuff

      provider("foo", box_format: ["virtualbox", "other_format"]) do
        # .. same
      end
    end

Now when using the example "foo" provider above, boxes for both
"virtualbox" or "other_format" are searched for. If both are found,
the order in which the formats exist determines precedence.
2013-04-06 18:21:16 -07:00
Mitchell Hashimoto
fbdd46a130 On Windows, prefer USERPROFILE for home directory path 2013-04-06 15:53:58 -07:00
Mitchell Hashimoto
52a2f48b20 Provider-specific configuration overrides via 2nd block param
Example:

Vagrant.configure("2") do |config|
  # ...

  config.vm.provider :virtualbox do |p, vb_config|
    vb_config.vm.box = "virtualbox_box"
  end
end
2013-04-03 14:57:14 -07:00
Mitchell Hashimoto
368dddd950 Allow only one Environment#batch to run at a time per env 2013-04-03 08:31:42 -07:00
Mitchell Hashimoto
d6a84b5ca4 Environment#batch and forcing disable through env var 2013-04-03 08:31:42 -07:00
JD Harrington
8cd74fee16 Allow override of default_provider
Set the VAGRANT_DEFAULT_PROVIDER environment variable to override the
value of default_provider.
2013-04-03 08:31:42 -07:00
Mitchell Hashimoto
2e50a238fc Provider plugins can provide arbitrary options 2013-04-03 08:31:42 -07:00
Mitchell Hashimoto
8156185f5d Don't error too early when config.vm.box is not properly set 2013-03-29 12:54:01 -07:00
Mitchell Hashimoto
72e0a691db Don't load plugins.json plugins in Bundler env 2013-03-28 17:02:54 -07:00
Mitchell Hashimoto
327ca544ef Don't load any plugins for vagrant plugin [GH-1418] 2013-03-14 12:58:24 -07:00
Fabio Rehm
54e0c37dbf Fix typo on logging output 2013-03-06 19:47:28 -03:00
Mitchell Hashimoto
ade5d8a579 Human-friendly error if error copying private key [GH-580] 2013-03-01 13:51:11 -08:00
Mitchell Hashimoto
499d1ff8bf VAGRANT_VAGRANTFILE env var to specify alternate filename for Vfile 2013-02-23 12:07:23 -08:00
Mitchell Hashimoto
1bda157188 Only look for Vagrantfile if no more specific was given 2013-02-23 11:59:44 -08:00
Mitchell Hashimoto
60a1b035e7 For hooks, put the environment in the action env 2013-02-22 15:52:57 -08:00
Mitchell Hashimoto
3b2a82003e The hook callable has to be an Action builder so the hooks are called 2013-02-22 15:28:48 -08:00
Mitchell Hashimoto
9750069312 Better logging around environment hooks 2013-02-22 14:43:43 -08:00