aboutsummaryrefslogtreecommitdiff
path: root/lib/backend
diff options
context:
space:
mode:
Diffstat (limited to 'lib/backend')
-rw-r--r--lib/backend/git.rb8
-rw-r--r--lib/backend/recipients_store.rb6
2 files changed, 14 insertions, 0 deletions
diff --git a/lib/backend/git.rb b/lib/backend/git.rb
index 4ce016d..3ca2d60 100644
--- a/lib/backend/git.rb
+++ b/lib/backend/git.rb
@@ -36,5 +36,13 @@ module Backend
def clone(url, path)
@git = ::Git.clone(url, path)
end
+
+ def add(pattern)
+ @git.add(pattern)
+ end
+
+ def commit(message)
+ @git.commit(message)
+ end
end
end
diff --git a/lib/backend/recipients_store.rb b/lib/backend/recipients_store.rb
index 2dab533..bae28df 100644
--- a/lib/backend/recipients_store.rb
+++ b/lib/backend/recipients_store.rb
@@ -56,6 +56,12 @@ module Backend
File.directory?(getPath())
end
+ def create()
+ fileName = getPath()
+ file = File.new(fileName, "w")
+ file.close
+ end
+
private
def read()