Sha256: 42181aefaf3385eaa058a5c941ce1b540f9b65f19d6761c1e95754e04207c89b

Contents?: true

Size: 288 Bytes

Versions: 1

Compression:

Stored size: 288 Bytes

Contents

require 'auto_network/pool'

module AutoNetwork

# Extension to vagrant VM configuration to automatically configure an
# internal network.
module Mixin

  def auto_network!
    pool = AutoNetwork::Pool.instance
    addr = pool.next
    network :private_network, :ip => addr
  end
end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vagrant-auto_network-0.1.0 lib/auto_network/mixin.rb