Class: VagrantPlugins::ProxyConf::Config::AptProxy

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

Overview

Proxy configuration for Apt

Defined Under Namespace

Classes: AptProxyURI

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?, #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/apt_proxy.rb', line 21

key :ftp, env_var: 'VAGRANT_APT_FTP_PROXY'

#httpString

Returns the HTTP proxy.

Returns:

  • (String)

    the HTTP proxy



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

key :http, env_var: 'VAGRANT_APT_HTTP_PROXY'

#httpsString

Returns the HTTPS proxy.

Returns:

  • (String)

    the HTTPS proxy



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

key :https, env_var: 'VAGRANT_APT_HTTPS_PROXY'

Instance Method Details

#finalize!Object



23
24
25
26
27
28
29
30
# File 'lib/vagrant-proxyconf/config/apt_proxy.rb', line 23

def finalize!
  super

  keys.each do |key|
    value = get(key)
    set(key, finalize_uri(key, value)) if value
  end
end