Class: VagrantPlugins::ProxyConf::Config::Proxy

Inherits:
Vagrant::Plugin::V2::Config
  • Object
show all
Extended by:
KeyMixin::ClassMethods
Includes:
KeyMixin
Defined in:
lib/vagrant-proxyconf/config/proxy.rb,
lib/vagrant-proxyconf/config/proxy.rb

Overview

Default configuration for all proxy Config classes

Instance Attribute Summary collapse

Attributes included from KeyMixin::ClassMethods

#keys

Instance Method Summary collapse

Methods included from KeyMixin::ClassMethods

key

Methods included from KeyMixin

#config_for, #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



25
# File 'lib/vagrant-proxyconf/config/proxy.rb', line 25

key :ftp, env_var: 'VAGRANT_FTP_PROXY'

#httpString

Returns the HTTP proxy.

Returns:

  • (String)

    the HTTP proxy



17
# File 'lib/vagrant-proxyconf/config/proxy.rb', line 17

key :http, env_var: 'VAGRANT_HTTP_PROXY'

#httpsString

Returns the HTTPS proxy.

Returns:

  • (String)

    the HTTPS proxy



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

key :https, env_var: 'VAGRANT_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



29
# File 'lib/vagrant-proxyconf/config/proxy.rb', line 29

key :no_proxy, env_var: 'VAGRANT_NO_PROXY'

Instance Method Details

#http_passString

Returns password for the HTTP proxy.

Returns:

  • (String)

    password for the HTTP proxy



37
38
39
# File 'lib/vagrant-proxyconf/config/proxy.rb', line 37

def http_pass
  pass(http)
end

#http_userString

Returns username for the HTTP proxy.

Returns:

  • (String)

    username for the HTTP proxy



32
33
34
# File 'lib/vagrant-proxyconf/config/proxy.rb', line 32

def http_user
  user(http)
end

#https_passString

Returns password for the HTTPS proxy.

Returns:

  • (String)

    password for the HTTPS proxy



47
48
49
# File 'lib/vagrant-proxyconf/config/proxy.rb', line 47

def https_pass
  pass(https)
end

#https_userString

Returns username for the HTTPS proxy.

Returns:

  • (String)

    username for the HTTPS proxy



42
43
44
# File 'lib/vagrant-proxyconf/config/proxy.rb', line 42

def https_user
  user(https)
end