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

Version Path
pkg-wizard-0.1.29 lib/pkg-wizard/git.rb
pkg-wizard-0.1.28 lib/pkg-wizard/git.rb
pkg-wizard-0.1.27 lib/pkg-wizard/git.rb
pkg-wizard-0.1.26 lib/pkg-wizard/git.rb
pkg-wizard-0.1.25 lib/pkg-wizard/git.rb
pkg-wizard-0.1.24 lib/pkg-wizard/git.rb
pkg-wizard-0.1.23 lib/pkg-wizard/git.rb
pkg-wizard-0.1.22 lib/pkg-wizard/git.rb
pkg-wizard-0.1.21 lib/pkg-wizard/git.rb
pkg-wizard-0.1.19 lib/pkg-wizard/git.rb
pkg-wizard-0.1.18 lib/pkg-wizard/git.rb
pkg-wizard-0.1.17 lib/pkg-wizard/git.rb
pkg-wizard-0.1.16 lib/pkg-wizard/git.rb
pkg-wizard-0.1.15 lib/pkg-wizard/git.rb
pkg-wizard-0.1.14 lib/pkg-wizard/git.rb
pkg-wizard-0.1.12 lib/pkg-wizard/git.rb