add `rake crashlog' task to show a last crash log

http://hipbyte.myjetbrains.com/youtrack/issue/RM-208
This commit is contained in:
Watson
2013-07-22 14:37:53 +09:00
parent 1788c958ac
commit 02582c48b7

View File

@@ -69,3 +69,9 @@ task :ctags do
sh "#{ctags} --options=\"#{config}\" #{bs_files.map { |x| '"' + x + '"' }.join(' ')}"
end
end
desc "Show a last crash log"
task :crashlog do
logs = Dir.glob(File.join(File.expand_path("~/Library/Logs/DiagnosticReports/"), "#{App.config.name}_*"))
sh "open -a Console #{logs.last}"
end