summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2020-03-07 10:58:13 +0000
committerPaul Buetow <paul@buetow.org>2020-03-07 10:58:13 +0000
commit00441e797994e2af1e19a9550e6e3f65a486a86f (patch)
tree5f0b1a2b5cc1ca075ac8f3ff1b3474a3d4ce39f0
parent16d09058b460f8c5e50d491243ec71f0905dbf0f (diff)
add sync repos
-rwxr-xr-xgeheim.rb7
1 files changed, 5 insertions, 2 deletions
diff --git a/geheim.rb b/geheim.rb
index 9c70a05..d37f461 100755
--- a/geheim.rb
+++ b/geheim.rb
@@ -12,6 +12,7 @@ $data_dir = "#{ENV['HOME']}/.geheimstore"
$export_dir = "#{ENV['HOME']}/.geheimexport"
$key_file = "#{ENV['HOME']}/.geheim.key"
$edit_cmd = "vim --cmd 'set noswapfile' --cmd 'set nobackup' --cmd 'set nowritebackup'"
+$sync_repos = %w(dv vulcan)
module Git
def initialize
@@ -54,8 +55,10 @@ module Git
def git_sync
puts "Synchronising #{$data_dir}"
Dir.chdir($data_dir)
- puts %x{git pull origin master}
- puts %x{git push origin master}
+ $sync_repos.each do |repo|
+ puts %x{git pull #{repo} master}
+ puts %x{git push #{repo} master}
+ end
puts %x{git status}
Dir.chdir(@wd)
end