Extremely basic Radar integration

This commit is contained in:
Mitchell Hashimoto 2010-09-01 19:46:11 -07:00
parent fb6caa7730
commit f697ca543e
1 changed files with 9 additions and 0 deletions

View File

@ -1,6 +1,7 @@
require 'json' require 'json'
require 'i18n' require 'i18n'
require 'virtualbox' require 'virtualbox'
require 'radar'
require 'vagrant/util/glob_loader' require 'vagrant/util/glob_loader'
module Vagrant module Vagrant
@ -24,6 +25,14 @@ module Vagrant
end end
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 # Default I18n to load the en locale
I18n.load_path << File.expand_path("templates/locales/en.yml", Vagrant.source_root) I18n.load_path << File.expand_path("templates/locales/en.yml", Vagrant.source_root)