Class: VagrantPlugins::ProxyConf::Config::AptProxy::ConfigLine Private
- Inherits:
-
Object
- Object
- VagrantPlugins::ProxyConf::Config::AptProxy::ConfigLine
- Defined in:
- lib/vagrant-proxyconf/config/apt_proxy.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Helper for constructing a configuration line for apt.conf
Instance Attribute Summary collapse
- #proto ⇒ Object readonly private
- #value ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(proto, value) ⇒ ConfigLine
constructor
private
A new instance of ConfigLine.
-
#to_s ⇒ String
private
The full Apt configuration line.
Constructor Details
#initialize(proto, value) ⇒ ConfigLine
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of ConfigLine.
39 40 41 42 |
# File 'lib/vagrant-proxyconf/config/apt_proxy.rb', line 39 def initialize(proto, value) @proto = proto @value = value end |
Instance Attribute Details
#proto ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
35 36 37 |
# File 'lib/vagrant-proxyconf/config/apt_proxy.rb', line 35 def proto @proto end |
#value ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
35 36 37 |
# File 'lib/vagrant-proxyconf/config/apt_proxy.rb', line 35 def value @value end |
Instance Method Details
#to_s ⇒ String
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns the full Apt configuration line.
45 46 47 |
# File 'lib/vagrant-proxyconf/config/apt_proxy.rb', line 45 def to_s %Q{Acquire::#{proto}::Proxy "#{direct || proxy_uri}";\n} if set? end |