summaryrefslogtreecommitdiff
path: root/bin/oxidized
diff options
context:
space:
mode:
Diffstat (limited to 'bin/oxidized')
-rwxr-xr-xbin/oxidized17
1 files changed, 17 insertions, 0 deletions
diff --git a/bin/oxidized b/bin/oxidized
new file mode 100755
index 0000000..564bb16
--- /dev/null
+++ b/bin/oxidized
@@ -0,0 +1,17 @@
+#!/usr/bin/env ruby
+
+require 'oxidized'
+
+begin
+ Oxidized.new
+rescue => e
+ open Oxidized::Config::Crash, 'w' do |file|
+ file.puts '-' * 50
+ file.puts Time.now.utc
+ file.puts e.message
+ file.puts '-' * 50
+ file.puts e.backtrace
+ file.puts '-' * 50
+ end
+ warn "ERROR: #{e}"
+end