From 3dc52f34c386409e65465aaa0878ac5db812570c Mon Sep 17 00:00:00 2001 From: Saku Ytti Date: Fri, 26 Apr 2013 17:41:40 +0300 Subject: Gemify + add sort-of-cli --- bin/oxidized | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 bin/oxidized (limited to 'bin') 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 -- cgit v1.2.1