Method: Dotfu::Repos#fetch
- Defined in:
- lib/dotfu/repos.rb
#fetch ⇒ Object
A wrapper method to clone or update a repo.
81 82 83 84 85 86 87 88 |
# File 'lib/dotfu/repos.rb', line 81 def fetch return nil if !repo || !user if fetched? pull else clone end end |