Sha256: c7edd4fc71303957c2bacd225f431f9903d50d6100c397557cd02f11aff61e0c

Contents?: true

Size: 192 Bytes

Versions: 8

Compression:

Stored size: 192 Bytes

Contents

# -*- encoding : utf-8 -*-
module GitStats
  class Validator

    def valid_repo_path?(repo_path)
      Dir.exists?("#{repo_path}/.git") || File.exists?("#{repo_path}/HEAD")
    end

  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
git_stats-1.0.13 lib/git_stats/validator.rb
git_stats-1.0.12 lib/git_stats/validator.rb
git_stats-1.0.11 lib/git_stats/validator.rb
git_stats-1.0.10 lib/git_stats/validator.rb
git_stats-1.0.9 lib/git_stats/validator.rb
git_stats-1.0.8 lib/git_stats/validator.rb
git_stats-1.0.7 lib/git_stats/validator.rb
git_stats-1.0.6 lib/git_stats/validator.rb