Class: VagrantPlugins::ProxyConf::Config::EnvProxy
- Inherits:
-
Vagrant::Plugin::V2::Config
- Object
- Vagrant::Plugin::V2::Config
- VagrantPlugins::ProxyConf::Config::EnvProxy
- Extended by:
- KeyMixin::ClassMethods
- Includes:
- KeyMixin
- Defined in:
- lib/vagrant-proxyconf/config/env_proxy.rb,
lib/vagrant-proxyconf/config/env_proxy.rb
Overview
Configuration for generic ‘<protocol>_proxy` environment variables
Instance Attribute Summary collapse
-
#ftp ⇒ String
The FTP proxy.
-
#http ⇒ String
The HTTP proxy.
-
#https ⇒ String
The HTTPS proxy.
-
#no_proxy ⇒ String
A comma separated list of hosts or domains which do not use proxies.
Attributes included from KeyMixin::ClassMethods
Instance Method Summary collapse
Methods included from KeyMixin::ClassMethods
Methods included from KeyMixin
#enabled?, #finalize!, #get, included, #initialize, #key?, #keys, #merge_defaults, #set, #set?, #to_s
Instance Attribute Details
#ftp ⇒ String
Returns the FTP proxy.
21 |
# File 'lib/vagrant-proxyconf/config/env_proxy.rb', line 21 key :ftp, env_var: 'VAGRANT_ENV_FTP_PROXY' |
#http ⇒ String
Returns the HTTP proxy.
15 |
# File 'lib/vagrant-proxyconf/config/env_proxy.rb', line 15 key :http, env_var: 'VAGRANT_ENV_HTTP_PROXY' |
#https ⇒ String
Returns the HTTPS proxy.
18 |
# File 'lib/vagrant-proxyconf/config/env_proxy.rb', line 18 key :https, env_var: 'VAGRANT_ENV_HTTPS_PROXY' |
#no_proxy ⇒ String
Returns a comma separated list of hosts or domains which do not use proxies.
24 |
# File 'lib/vagrant-proxyconf/config/env_proxy.rb', line 24 key :no_proxy, env_var: 'VAGRANT_ENV_NO_PROXY' |
Instance Method Details
#validate(machine) ⇒ Object
26 27 28 29 30 31 32 33 34 |
# File 'lib/vagrant-proxyconf/config/env_proxy.rb', line 26 def validate(machine) if enabled? puts 'DEPRECATION: `config.env_proxy.*` and `VAGRANT_ENV_*_PROXY`' puts 'configuration is deprecated and will be removed in v2.0.0.' puts 'Please use `config.proxy.*` and `VAGRANT_*_PROXY` instead.' puts end super end |