Hi,
I am using the vagrant-proxyconf plugin like this in my configuration:
...
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# configure Proxy
if Vagrant.has_plugin?("vagrant-proxyconf")
# TODO remove credentials from here
config.proxy.http = "http://user:[email protected]:8080/"
config.proxy.https = "http://user:[email protected]:8080/"
config.proxy.no_proxy = "localhost,127.0.0.1,.example.com"
else
# TODO cancel with error message ?
# please install:
# > vagrant plugin install vagrant-proxyconf
end
...
I want to remove config.proxy.http and config.proxy.https from the
VagrantFile - it should be set outside like
set VAGRANT_HTTP_PROXY="http://myUser:[email protected]:8080/"
set VAGRANT_HTTPS_PROXY="http://myUser:[email protected]:8080/
How can I
1.) check if the plugin is installed - and show a proper message otherwise
(see TODO in else block)
2.) check if these Variables are set - and show a proper message otherwise?
Is there any "throw new ConfigurationException("missing ....." ) possible
inside the VagrantFile ?
Thx,
Torsten
--
You received this message because you are subscribed to the Google Groups
"Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.