add Depot#size to get current files count
authorLunar <lunar@anargeek.net>
Sat, 17 Mar 2012 10:41:41 +0000 (11:41 +0100)
committerLunar <lunar@anargeek.net>
Fri, 23 Mar 2012 17:11:28 +0000 (18:11 +0100)
lib/coquelicot/depot.rb

index 68634be..6ac491d 100644 (file)
@@ -68,6 +68,10 @@ module Coquelicot
       end
     end
 
+    def size
+      files.count
+    end
+
   private
 
     LOCKFILE_OPTIONS = { :timeout => 60,