Class: VagrantPlugins::ProxyConf::Config::EnvProxy

Inherits:
Vagrant::Plugin::V2::Config
  • Object
show all
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

Attributes included from KeyMixin::ClassMethods

#keys, #name

Instance Method Summary collapse

Methods included from KeyMixin::ClassMethods

key

Methods included from KeyMixin

#enabled?, #finalize!, #get, included, #initialize, #key?, #keys, #merge_defaults, #set, #set?, #to_s

Instance Attribute Details

#ftpString

Returns the FTP proxy.

Returns:

  • (String)

    the FTP proxy



21
# File 'lib/vagrant-proxyconf/config/env_proxy.rb', line 21

key :ftp, env_var: 'VAGRANT_ENV_FTP_PROXY'

#httpString

Returns the HTTP proxy.

Returns:

  • (String)

    the HTTP proxy



15
# File 'lib/vagrant-proxyconf/config/env_proxy.rb', line 15

key :http, env_var: 'VAGRANT_ENV_HTTP_PROXY'

#httpsString

Returns the HTTPS proxy.

Returns:

  • (String)

    the HTTPS proxy



18
# File 'lib/vagrant-proxyconf/config/env_proxy.rb', line 18

key :https, env_var: 'VAGRANT_ENV_HTTPS_PROXY'

#no_proxyString

Returns a comma separated list of hosts or domains which do not use proxies.

Returns:

  • (String)

    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