Sha256: e047c65355f77c8bb52f45884716b4249bc30cfe8d3292cc2b582b3536ba94b1

Contents?: true

Size: 267 Bytes

Versions: 6

Compression:

Stored size: 267 Bytes

Contents

require 'git'

module PKGWizard

  class GitRPM
    def self.fetch(giturl, path)
      # We pull if clone exists
      if File.directory?(path + '/.git')
        c = Git.open(path)
        c.pull
      else
        Git.clone giturl, path
      end
    end
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
pkg-wizard-0.1.8 lib/pkg-wizard/git.rb
pkg-wizard-0.1.7 lib/pkg-wizard/git.rb
pkg-wizard-0.1.6 lib/pkg-wizard/git.rb
pkg-wizard-0.1.5 lib/pkg-wizard/git.rb
pkg-wizard-0.1.3 lib/pkg-wizard/git.rb
pkg-wizard-0.1.2 lib/pkg-wizard/git.rb