Method: GitRepo#up

Defined in:
lib/exogenesis/passengers/git_repo.rb

#upObject

Clone the Repo if it doesn’t exist Pull the Repo if it does



12
13
14
15
16
17
18
19
20
# File 'lib/exogenesis/passengers/git_repo.rb', line 12

def up
  each_repo_and_target do |git_repo, target|
    if target.exist?
      pull_repo(git_repo, target)
    else
      clone_repo(git_repo, target)
    end
  end
end