Class: VagrantPlugins::Dotvm::Config::Network
- Inherits:
-
AbstractConfig
- Object
- AbstractConfig
- VagrantPlugins::Dotvm::Config::Network
- Defined in:
- lib/vagrant-dotvm/config/network.rb
Overview
Stores network configuration
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
#convert_array, #ensure_type, #populate
Constructor Details
#initialize ⇒ Network
Returns a new instance of Network.
20 21 22 |
# File 'lib/vagrant-dotvm/config/network.rb', line 20 def initialize @net = :private_network end |
Instance Attribute Details
#auto_config ⇒ Object
Returns the value of attribute auto_config.
18 19 20 |
# File 'lib/vagrant-dotvm/config/network.rb', line 18 def auto_config @auto_config end |
#auto_correct ⇒ Object
Returns the value of attribute auto_correct.
17 18 19 |
# File 'lib/vagrant-dotvm/config/network.rb', line 17 def auto_correct @auto_correct end |
#bridge ⇒ Object
Returns the value of attribute bridge.
14 15 16 |
# File 'lib/vagrant-dotvm/config/network.rb', line 14 def bridge @bridge end |
#guest ⇒ Object
Returns the value of attribute guest.
11 12 13 |
# File 'lib/vagrant-dotvm/config/network.rb', line 11 def guest @guest end |
#guest_ip ⇒ Object
Returns the value of attribute guest_ip.
15 16 17 |
# File 'lib/vagrant-dotvm/config/network.rb', line 15 def guest_ip @guest_ip end |
#host ⇒ Object
Returns the value of attribute host.
12 13 14 |
# File 'lib/vagrant-dotvm/config/network.rb', line 12 def host @host end |
#host_ip ⇒ Object
Returns the value of attribute host_ip.
16 17 18 |
# File 'lib/vagrant-dotvm/config/network.rb', line 16 def host_ip @host_ip end |
#ip ⇒ Object
Returns the value of attribute ip.
8 9 10 |
# File 'lib/vagrant-dotvm/config/network.rb', line 8 def ip @ip end |
#net ⇒ Object
Returns the value of attribute net.
6 7 8 |
# File 'lib/vagrant-dotvm/config/network.rb', line 6 def net @net end |
#netmask ⇒ Object
mask
9 10 11 |
# File 'lib/vagrant-dotvm/config/network.rb', line 9 def netmask @netmask end |
#protocol ⇒ Object
Returns the value of attribute protocol.
13 14 15 |
# File 'lib/vagrant-dotvm/config/network.rb', line 13 def protocol @protocol end |
#type ⇒ Object
Returns the value of attribute type.
7 8 9 |
# File 'lib/vagrant-dotvm/config/network.rb', line 7 def type @type end |
#virtualbox__intnet ⇒ Object
interface
10 11 12 |
# File 'lib/vagrant-dotvm/config/network.rb', line 10 def virtualbox__intnet @virtualbox__intnet end |
Instance Method Details
#interface=(value) ⇒ Object
41 42 43 |
# File 'lib/vagrant-dotvm/config/network.rb', line 41 def interface=(value) @virtualbox__intnet = value end |
#mask=(value) ⇒ Object
37 38 39 |
# File 'lib/vagrant-dotvm/config/network.rb', line 37 def mask=(value) @netmask = value end |