diff options
| author | Paul Buetow <paul@buetow.org> | 2020-03-07 10:58:13 +0000 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2020-03-07 10:58:13 +0000 |
| commit | 00441e797994e2af1e19a9550e6e3f65a486a86f (patch) | |
| tree | 5f0b1a2b5cc1ca075ac8f3ff1b3474a3d4ce39f0 | |
| parent | 16d09058b460f8c5e50d491243ec71f0905dbf0f (diff) | |
add sync repos
| -rwxr-xr-x | geheim.rb | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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 |
