Class: VagrantPlugins::Dotvm::Config::Network
- Inherits:
-
AbstractConfig
- Object
- AbstractConfig
- VagrantPlugins::Dotvm::Config::Network
- Defined in:
- lib/vagrant-dotvm/config/network.rb
Instance Attribute Summary collapse
-
#auto_config ⇒ Object
Returns the value of attribute auto_config.
-
#auto_correct ⇒ Object
Returns the value of attribute auto_correct.
-
#bridge ⇒ Object
Returns the value of attribute bridge.
-
#guest ⇒ Object
Returns the value of attribute guest.
-
#guest_ip ⇒ Object
Returns the value of attribute guest_ip.
-
#host ⇒ Object
Returns the value of attribute host.
-
#host_ip ⇒ Object
Returns the value of attribute host_ip.
-
#ip ⇒ Object
Returns the value of attribute ip.
-
#net ⇒ Object
Returns the value of attribute net.
-
#netmask ⇒ Object
mask.
-
#protocol ⇒ Object
Returns the value of attribute protocol.
-
#type ⇒ Object
Returns the value of attribute type.
-
#virtualbox__intnet ⇒ Object
interface.
Instance Method Summary collapse
-
#initialize ⇒ Network
constructor
A new instance of Network.
- #interface=(value) ⇒ Object
- #mask=(value) ⇒ Object
Methods inherited from AbstractConfig
#populate, #replace_vars, #replace_vars!
Constructor Details
#initialize ⇒ Network
Returns a new instance of Network.
19 20 21 |
# File 'lib/vagrant-dotvm/config/network.rb', line 19 def initialize() @net = :private_network end |
Instance Attribute Details
#auto_config ⇒ Object
Returns the value of attribute auto_config.
17 18 19 |
# File 'lib/vagrant-dotvm/config/network.rb', line 17 def auto_config @auto_config end |
#auto_correct ⇒ Object
Returns the value of attribute auto_correct.
16 17 18 |
# File 'lib/vagrant-dotvm/config/network.rb', line 16 def auto_correct @auto_correct end |
#bridge ⇒ Object
Returns the value of attribute bridge.
13 14 15 |
# File 'lib/vagrant-dotvm/config/network.rb', line 13 def bridge @bridge end |
#guest ⇒ Object
Returns the value of attribute guest.
10 11 12 |
# File 'lib/vagrant-dotvm/config/network.rb', line 10 def guest @guest end |
#guest_ip ⇒ Object
Returns the value of attribute guest_ip.
14 15 16 |
# File 'lib/vagrant-dotvm/config/network.rb', line 14 def guest_ip @guest_ip end |
#host ⇒ Object
Returns the value of attribute host.
11 12 13 |
# File 'lib/vagrant-dotvm/config/network.rb', line 11 def host @host end |
#host_ip ⇒ Object
Returns the value of attribute host_ip.
15 16 17 |
# File 'lib/vagrant-dotvm/config/network.rb', line 15 def host_ip @host_ip end |
#ip ⇒ Object
Returns the value of attribute ip.
7 8 9 |
# File 'lib/vagrant-dotvm/config/network.rb', line 7 def ip @ip end |
#net ⇒ Object
Returns the value of attribute net.
5 6 7 |
# File 'lib/vagrant-dotvm/config/network.rb', line 5 def net @net end |
#netmask ⇒ Object
mask
8 9 10 |
# File 'lib/vagrant-dotvm/config/network.rb', line 8 def netmask @netmask end |
#protocol ⇒ Object
Returns the value of attribute protocol.
12 13 14 |
# File 'lib/vagrant-dotvm/config/network.rb', line 12 def protocol @protocol end |
#type ⇒ Object
Returns the value of attribute type.
6 7 8 |
# File 'lib/vagrant-dotvm/config/network.rb', line 6 def type @type end |
#virtualbox__intnet ⇒ Object
interface
9 10 11 |
# File 'lib/vagrant-dotvm/config/network.rb', line 9 def virtualbox__intnet @virtualbox__intnet end |
Instance Method Details
#interface=(value) ⇒ Object
40 41 42 |
# File 'lib/vagrant-dotvm/config/network.rb', line 40 def interface=(value) @virtualbox__intnet = value end |
#mask=(value) ⇒ Object
36 37 38 |
# File 'lib/vagrant-dotvm/config/network.rb', line 36 def mask=(value) @netmask = value end |