Method: Mono.backup

Defined in:
lib/mono/commands/backup.rb

.backupObject

pass along hash of repos (e.g. monorepo.yml or repos.yml )



4
5
6
7
8
9
10
11
12
13
# File 'lib/mono/commands/backup.rb', line 4

def self.backup
  repos = Mono.monofile

  backup = GitBackup.new

  ## step 2: pass in all repos to backup by using
  ##   1) git clone --mirror or
  ##   2) git remote update  (if local backup already exists)
  backup.backup( repos )
end