Class: PKGWizard::GitRPM
- Inherits:
-
Object
- Object
- PKGWizard::GitRPM
- Defined in:
- lib/pkg-wizard/git.rb
Class Method Summary collapse
Class Method Details
.fetch(giturl, path, opts = {}) ⇒ Object
11 12 13 14 15 16 17 18 19 |
# File 'lib/pkg-wizard/git.rb', line 11 def self.fetch(giturl, path, opts = {}) # We pull if clone exists if File.directory?(path + '/.git') c = Git.open(path) c.pull else Git.clone giturl, path, opts end end |