Simplify dnsmasq leases lookup

This commit is contained in:
Fabio Rehm 2013-07-31 23:00:35 -03:00
parent 4bb70fb252
commit 1ef2c5bcad

View file

@ -37,8 +37,8 @@ module Vagrant
)
def read_dnsmasq_leases
LEASES_PATHS.map do |path|
File.read(path) if File.exists?(path)
Dir["{#{LEASES_PATHS.join(',')}}"].map do |file|
File.read(file)
end.join("\n")
end
end