Sha256: fbe8f33fd6fddcb43d416031d43e3d97e3503dde9932d100ae840d547980bc7b

Contents?: true

Size: 193 Bytes

Versions: 4

Compression:

Stored size: 193 Bytes

Contents

module Jets::Util
  module Git
    def git?
      File.exist?("#{Jets.root}/.git") && git_installed?
    end

    def git_installed?
      system("type git > /dev/null 2>&1")
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
jets-6.0.5 lib/jets/util/git.rb
jets-6.0.4 lib/jets/util/git.rb
jets-6.0.3 lib/jets/util/git.rb
jets-6.0.2 lib/jets/util/git.rb