add a script to run gc in a cronjob
authormh <mh@immerda.ch>
Sun, 7 Aug 2011 14:24:28 +0000 (16:24 +0200)
committermh <mh@immerda.ch>
Sun, 7 Aug 2011 14:24:28 +0000 (16:24 +0200)
ext/coquelicot_gc.rb [new file with mode: 0644]

diff --git a/ext/coquelicot_gc.rb b/ext/coquelicot_gc.rb
new file mode 100644 (file)
index 0000000..b1fd0f9
--- /dev/null
@@ -0,0 +1,6 @@
+#!/bin/env ruby
+
+$: << File.expand_path(File.join(File.dirname(__FILE__),'..','lib')) << File.expand_path(File.join(File.dirname(__FILE__),'..'))
+require 'coquelicot_app'
+
+Coquelicot::Depot.new(Coquelicot.settings.depot_path).gc!
\ No newline at end of file