Module: Engineyard::Local::Middleware::Helpers::Network

Included in:
Network, Tag
Defined in:
lib/engineyard-local/middleware/helpers/network.rb

Instance Method Summary collapse

Instance Method Details

#networksObject



12
13
14
# File 'lib/engineyard-local/middleware/helpers/network.rb', line 12

def networks
  @env[:vm].config.vm.networks
end

#proposed_ipObject



6
7
8
9
10
# File 'lib/engineyard-local/middleware/helpers/network.rb', line 6

def proposed_ip
  # networks is an array of pairs, snd is the ip, fst is type
  # TODO this generally sucks and is tightly coupled to vagrant internals
  (networks.first || [[]]).last.first || Local.config[:network] || '10.0.0.1'
end