Add a script for cleaning the Reportable cache - warvox - VoIP based wardialing tool, forked from rapid7/warvox.
   DIR Log
   DIR Files
   DIR Refs
   DIR README
       ---
   DIR commit e9ab316926a10a27fdeb44d6c746cb26dccab2c9
   DIR parent 3e3fbfb5bd9f1295c66868ae3a94b3d41040a98d
  HTML Author: HD Moore <hd_moore@rapid7.com>
       Date:   Sun, 13 Jan 2013 11:12:29 -0600
       
       Add a script for cleaning the Reportable cache
       
       Diffstat:
         A bin/cache_clear.rb                  |      28 ++++++++++++++++++++++++++++
       
       1 file changed, 28 insertions(+), 0 deletions(-)
       ---
   DIR diff --git a/bin/cache_clear.rb b/bin/cache_clear.rb
       @@ -0,0 +1,28 @@
       +#!/usr/bin/env ruby
       +###################
       +
       +#
       +# Load the library path
       +#
       +base = __FILE__
       +while File.symlink?(base)
       +        base = File.expand_path(File.readlink(base), File.dirname(base))
       +end
       +$:.unshift(File.join(File.expand_path(File.dirname(base)), '..', 'lib'))
       +
       +require 'warvox'
       +require 'fileutils'
       +require 'yaml'
       +
       +ENV['RAILS_ENV'] ||= 'production'
       +$:.unshift(File.join(File.expand_path(File.dirname(base)), '..'))
       +
       +
       +$stderr.puts "[*] Loading database environment..."
       +
       +require 'config/boot'
       +require 'config/environment'
       +
       +
       +$stderr.puts "[*] Clearing the report cache..."
       +Saulabs::Reportable::ReportCache.delete_all