lib/chef-workflow/support/ip.rb
#
# Helper method for vagrant. Vagrant always occupies .1 of any subnet it
# configures host-only networking on. This takes care of doing that.
#
Helper method for vagrant. Vagrant always occupies .1 of any subnet it
configures host-only networking on. This takes care of doing that.
Helper method for vagrant . Vagrant always occupies . 1 of any subnet it configures host - only networking on . This takes care of doing that .
def seed_vagrant_ips
    dot_one_ip = @subnet.gsub(/\.\d+$/, '.1')
    unless ip_used?(dot_one_ip)
      assign_role_ip("vagrant-reserved", dot_one_ip)
    end
  end
def seed_vagrant_ips dot_one_ip = @subnet . gsub ( / \. \d +$ / , '.1' ) unless ip_used? ( dot_one_ip ) assign_role_ip ( "vagrant-reserved" , dot_one_ip ) end end
Helper method for vagrant.
Helper method for vagrant .
# vagrant requires that .1 be used by vagrant. ugh.