Sha256: 8a5476bb4b18c41e1ea7539849849b0b6376c6c7bd46144c8646e9843d8f6793

Contents?: true

Size: 429 Bytes

Versions: 1

Compression:

Stored size: 429 Bytes

Contents

# Vagrant private network
#
# @see http://docs.vagrantup.com/v2/networking/private_network.html
class ConfigBuilder::Model::Network::PrivateNetwork < ConfigBuilder::Model::Base

  # @!attribute [rw] :ip
  #   @return [String] The IP address to use for the private network interface
  def_model_attribute :ip

  def to_proc
    Proc.new do |vm_config|
      vm_config.network(:private_network, :ip => attr(:ip))
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vagrant-config_builder-0.1.0 lib/config_builder/model/network/private_network.rb