aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/plugins/interlock/lib
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2011-02-23 14:13:07 +0000
committerLouise Crow <louise.crow@gmail.com>2011-02-23 14:13:07 +0000
commitf359615bb3b51c105f87c2214302ec5740559a09 (patch)
tree5b9581329f78a64380eed9928862916e1602b1d7 /vendor/plugins/interlock/lib
parentffbbae3e6138f91ab2b8b07e207a8074bd0adb81 (diff)
Moving tasks to lib as per deprecation warning. Have made a push request with this change to https://github.com/fauna/interlock
Diffstat (limited to 'vendor/plugins/interlock/lib')
-rw-r--r--vendor/plugins/interlock/lib/tasks/interlock.rake10
1 files changed, 10 insertions, 0 deletions
diff --git a/vendor/plugins/interlock/lib/tasks/interlock.rake b/vendor/plugins/interlock/lib/tasks/interlock.rake
new file mode 100644
index 000000000..a7089f112
--- /dev/null
+++ b/vendor/plugins/interlock/lib/tasks/interlock.rake
@@ -0,0 +1,10 @@
+
+namespace :interlock do
+ desc "Watch the Rails log for Interlock-specific messages"
+ task :tail do
+ Dir.chdir RAILS_ROOT do
+ exec("tail -f log/#{RAILS_ENV}.log | grep interlock")
+ end
+ end
+end
+ \ No newline at end of file