summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorSaku Ytti <saku@ytti.fi>2013-04-26 17:41:40 +0300
committerSaku Ytti <saku@ytti.fi>2013-04-26 17:41:40 +0300
commit3dc52f34c386409e65465aaa0878ac5db812570c (patch)
tree44966f1859e8a1d650c911a7772bbefce3acfc71 /bin
parentb30ca8b31e23ea9f518c92e2ef51f85d8e7a0584 (diff)
Gemify + add sort-of-cli
Diffstat (limited to 'bin')
-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