Class: VagrantPlugins::ProxyConf::Config::AptProxy
- Inherits:
-
Vagrant::Plugin::V2::Config
- Object
- Vagrant::Plugin::V2::Config
- VagrantPlugins::ProxyConf::Config::AptProxy
- 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
-
#ftp ⇒ String
The FTP proxy.
-
#http ⇒ String
The HTTP proxy.
-
#https ⇒ String
The HTTPS proxy.
-
#verify_host ⇒ String
Whether APT should verify that certificate name matches server name.
-
#verify_peer ⇒ String
Whether APT should verify peer certificate.
Attributes included from KeyMixin::ClassMethods
Instance Method Summary collapse
Methods included from KeyMixin::ClassMethods
Methods included from KeyMixin
#enabled?, #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/apt_proxy.rb', line 21 key :ftp, env_var: 'VAGRANT_APT_FTP_PROXY' |
#http ⇒ String
Returns the HTTP proxy.
15 |
# File 'lib/vagrant-proxyconf/config/apt_proxy.rb', line 15 key :http, env_var: 'VAGRANT_APT_HTTP_PROXY' |
#https ⇒ String
Returns the HTTPS proxy.
18 |
# File 'lib/vagrant-proxyconf/config/apt_proxy.rb', line 18 key :https, env_var: 'VAGRANT_APT_HTTPS_PROXY' |
#verify_host ⇒ String
Returns whether APT should verify that certificate name matches server name.
27 |
# File 'lib/vagrant-proxyconf/config/apt_proxy.rb', line 27 key :verify_host, env_var: 'VAGRANT_APT_VERIFY_HOST' |
#verify_peer ⇒ String
Returns whether APT should verify peer certificate.
24 |
# File 'lib/vagrant-proxyconf/config/apt_proxy.rb', line 24 key :verify_peer, env_var: 'VAGRANT_APT_VERIFY_PEER' |
Instance Method Details
#finalize! ⇒ Object
29 30 31 32 33 34 35 36 |
# File 'lib/vagrant-proxyconf/config/apt_proxy.rb', line 29 def finalize! super keys.each do |key| value = get(key) set(key, finalize_uri(key, value)) if value end end |