Class: ConfigBuilder::Model::Network::PrivateNetwork
- Defined in:
- lib/config_builder/model/network/private_network.rb
Overview
Vagrant private network
Instance Attribute Summary collapse
- #:auto_config(: auto_config) ⇒ Boolean
-
#:ip(: ip) ⇒ String
The IP address to use for the private network interface.
-
#:netmask(: netmask) ⇒ String
The netmask to use for the private network interface.
- #:type(: type) ⇒ String
Instance Method Summary collapse
Methods inherited from Base
#attr, #attrs=, #call, #configure!, def_model_attribute, def_model_delegator, def_model_id, def_model_option, #eval_models, #instance_id, #instance_options, model_attributes, model_delegators, #model_delegators, model_options, new_from_hash, #with_attr
Instance Attribute Details
#:auto_config(: auto_config) ⇒ Boolean
20 |
# File 'lib/config_builder/model/network/private_network.rb', line 20 def_model_attribute :auto_config |
#: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 |
#:netmask(: netmask) ⇒ String
Returns The netmask to use for the private network interface.
12 |
# File 'lib/config_builder/model/network/private_network.rb', line 12 def_model_attribute :netmask |
#:type(: type) ⇒ String
16 |
# File 'lib/config_builder/model/network/private_network.rb', line 16 def_model_attribute :type |
Instance Method Details
#to_proc ⇒ Object
22 23 24 25 26 27 28 29 30 |
# File 'lib/config_builder/model/network/private_network.rb', line 22 def to_proc Proc.new do |vm_config| # NOTE: @attrs _must_ be used here to preserve compatibility with the # vagrant-auto_network plugin. # FIXME: Re-factor attribute handling so that this sort of magic isn't # necessary. vm_config.network(:private_network, @attrs) end end |