Sha256: 8a9c0ff705c42530ddb5fa8b9fc208b892674d7b694971686902ceb4ac6c9a9f
Contents?: true
Size: 420 Bytes
Versions: 16
Compression:
Stored size: 420 Bytes
Contents
begin require 'git' rescue Git::GitExecuteError => e $stderr.puts "WARNING: Git is not installed in your system. Run pkgwiz init-env first." end module PKGWizard class GitRPM 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 end end
Version data entries
16 entries across 16 versions & 1 rubygems