Class: FakeGit::WriteTree
- Inherits:
-
Object
- Object
- FakeGit::WriteTree
- Defined in:
- lib/fake_git/write_tree.rb
Constant Summary collapse
- OBJ_PATH =
".fakegit/objects"
Instance Method Summary collapse
Instance Method Details
#call(*args) ⇒ Object
5 6 7 8 9 10 11 12 13 14 |
# File 'lib/fake_git/write_tree.rb', line 5 def call(*args) obj = FakeGit::Priv::Object.new( type: "tree", content: tree, index: Digest::SHA1.hexdigest(tree) ) puts obj.index write(obj) obj.index end |