class YJCocoa::Git
Usage
Public Instance Methods
gitExist?()
click to toggle source
# File lib/yjcocoa/git/git.rb, line 22 def gitExist? if File.exist?(".git") return true elsif Dir.pwd == "/" puts "fatal: Not a git repository (or any of the parent directories): .git".red return false end Dir.chdir("..") { return self.gitExist? } end