Skip to content
Permalink
master
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
module VagrantDNS
module Middlewares
class Restart
def initialize(app, env)
@app = app
@env = env
end
def call(env)
@env = env
vm = env[:machine]
if VagrantDNS::Config.auto_run
tmp_path = File.join(vm.env.tmp_path, "dns")
VagrantDNS::Service.new(tmp_path).restart!
env[:ui].info "Restarted DNS Service"
end
@app.call(env)
end
end
end
end