Class: VagrantPlugins::Dotvm::Config::Network

Inherits:
AbstractConfig show all
Defined in:
lib/vagrant-dotvm/config/network.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#interface ⇒ Object

Returns the value of attribute interface.



9
10
11
# File 'lib/vagrant-dotvm/config/network.rb', line 9

def interface
  @interface
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

#mask ⇒ Object

netmask



8
9
10
# File 'lib/vagrant-dotvm/config/network.rb', line 8

def mask
  @mask
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

#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

Instance Method Details

#netmask=(value) ⇒ Object



36
37
38
# File 'lib/vagrant-dotvm/config/network.rb', line 36

def netmask=(value)
  @mask = value
end