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

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



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

key :ftp, env_var: 'VAGRANT_FTP_PROXY'

#httpString

Returns the HTTP proxy.

Returns:

  • (String)

    the HTTP proxy



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

key :http, env_var: 'VAGRANT_HTTP_PROXY'

#httpsString

Returns the HTTPS proxy.

Returns:

  • (String)

    the HTTPS proxy



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

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



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

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



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

def http_pass
  pass(http)
end

#http_userString

Returns username for the HTTP proxy.

Returns:

  • (String)

    username for the HTTP proxy



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

def http_user
  user(http)
end

#https_passString

Returns password for the HTTPS proxy.

Returns:

  • (String)

    password for the HTTPS proxy



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

def https_pass
  pass(https)
end

#https_userString

Returns username for the HTTPS proxy.

Returns:

  • (String)

    username for the HTTPS proxy



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

def https_user
  user(https)
end