Sha256: 5c11c6e463fb75e54e7ad99cff5a76e6e80682c71fa161d0f9f6104277c20e71

Contents?: true

Size: 284 Bytes

Versions: 1

Compression:

Stored size: 284 Bytes

Contents

require 'git'

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

1 entries across 1 versions & 1 rubygems

Version Path
pkg-wizard-0.1.10 lib/pkg-wizard/git.rb