Module: Ignorance::ProjectOrientedVCS

Included in:
GitIgnoreFile, HgIgnoreFile
Defined in:
lib/ignorance/project_oriented_vcs.rb

Instance Method Summary collapse

Instance Method Details

#its_a_repo?Boolean

Returns:

  • (Boolean)


4
5
6
7
8
# File 'lib/ignorance/project_oriented_vcs.rb', line 4

def its_a_repo?
  Pathname.new(Dir.getwd).ascend do |path|
    break true if Dir.exists?(File.join(path, @repo_dir))
  end
end