Permalink
Browse files

added Depot to load and serve as root

  • Loading branch information...
1 parent 3b65f03 commit bde23171c5f743cb6ebc326c0dcfb1d9512f02de @michaelfeathers committed Jun 2, 2011
Showing with 21 additions and 0 deletions.
  1. +18 −0 depot.rb
  2. +3 −0 repo_depot.rb
View
@@ -0,0 +1,18 @@
+
+module RepoDepot
+ class Depot < Repository
+
+ def initialize name
+ super(name, load(name))
+ end
+
+ private
+
+ def load name
+ new_events = read_events(name).sort_by(&:date)
+ weave(new_events)
+ new_events
+ end
+
+ end
+end
View
@@ -8,4 +8,7 @@
require_relative 'source_file.rb'
require_relative 'writer_csv.rb'
require_relative 'array_ext.rb'
+require_relative 'commit.rb'
+require_relative 'weaver.rb'
+require_relative 'depot.rb'

0 comments on commit bde2317

Please sign in to comment.