Class: GR::Dirs
- Inherits:
-
Object
- Object
- GR::Dirs
- Defined in:
- lib/git_en_masse/dirs.rb
Class Method Summary collapse
Class Method Details
.current ⇒ Object
5 6 7 |
# File 'lib/git_en_masse/dirs.rb', line 5 def self.current return Dir.pwd end |
.git?(path, entry) ⇒ Boolean
14 15 16 17 |
# File 'lib/git_en_masse/dirs.rb', line 14 def self.git?(path, entry) file = File.join(path, entry).to_s return File.exists?("#{file}/.git/config") end |