Extremely basic Radar integration
This commit is contained in:
parent
fb6caa7730
commit
f697ca543e
|
@ -1,6 +1,7 @@
|
|||
require 'json'
|
||||
require 'i18n'
|
||||
require 'virtualbox'
|
||||
require 'radar'
|
||||
require 'vagrant/util/glob_loader'
|
||||
|
||||
module Vagrant
|
||||
|
@ -24,6 +25,14 @@ module Vagrant
|
|||
end
|
||||
end
|
||||
|
||||
# Setup Radar application for exception catching
|
||||
Radar::Application.new(:vagrant) do |app|
|
||||
app.reject :class, Vagrant::Errors::VagrantError
|
||||
app.reject :class, SystemExit
|
||||
app.reporters.use :file
|
||||
app.rescue_at_exit!
|
||||
end
|
||||
|
||||
# Default I18n to load the en locale
|
||||
I18n.load_path << File.expand_path("templates/locales/en.yml", Vagrant.source_root)
|
||||
|
||||
|
|
Loading…
Reference in New Issue