Class: ConfigBuilder::Model::Network::PrivateNetwork
- Defined in:
- lib/config_builder/model/network/private_network.rb
Overview
Vagrant private network
Instance Attribute Summary collapse
-
#:ip(: ip) ⇒ String
The IP address to use for the private network interface.
Instance Method Summary collapse
Methods inherited from Base
#attrs=, #call, def_model_attribute, model_attributes, new_from_hash
Instance Attribute Details
#:ip(: ip) ⇒ String
Returns The IP address to use for the private network interface.
8 |
# File 'lib/config_builder/model/network/private_network.rb', line 8 def_model_attribute :ip |
Instance Method Details
#to_proc ⇒ Object
10 11 12 13 14 |
# File 'lib/config_builder/model/network/private_network.rb', line 10 def to_proc Proc.new do |vm_config| vm_config.network(:private_network, @attrs) end end |