aboutsummaryrefslogtreecommitdiff
path: root/lib/backend/git.rb
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-02-27 15:38:05 -0300
committerSilvio Rhatto <rhatto@riseup.net>2011-02-27 15:38:05 -0300
commit89049c1338c6ecd9951753bf00a24ab479723149 (patch)
tree26ef47d42693565819fc9a52a27d0921167bcc0e /lib/backend/git.rb
parent016dda3698847024d102c309039f2d6f5511e6c0 (diff)
downloadkeyringer-89049c1338c6ecd9951753bf00a24ab479723149.tar.gz
keyringer-89049c1338c6ecd9951753bf00a24ab479723149.tar.bz2
Init: creating/cloning repository and other changes
Diffstat (limited to 'lib/backend/git.rb')
-rw-r--r--lib/backend/git.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/backend/git.rb b/lib/backend/git.rb
index 177657b..4ce016d 100644
--- a/lib/backend/git.rb
+++ b/lib/backend/git.rb
@@ -28,5 +28,13 @@ module Backend
false
end
end
+
+ def init(path)
+ @git = ::Git.init(path)
+ end
+
+ def clone(url, path)
+ @git = ::Git.clone(url, path)
+ end
end
end