diff options
author | Saku Ytti <saku@ytti.fi> | 2013-04-26 17:41:40 +0300 |
---|---|---|
committer | Saku Ytti <saku@ytti.fi> | 2013-04-26 17:41:40 +0300 |
commit | 3dc52f34c386409e65465aaa0878ac5db812570c (patch) | |
tree | 44966f1859e8a1d650c911a7772bbefce3acfc71 /bin | |
parent | b30ca8b31e23ea9f518c92e2ef51f85d8e7a0584 (diff) |
Gemify + add sort-of-cli
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/oxidized | 17 |
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 |