Module: MJ::VCS::Git

Defined in:
lib/mj/vcs/git.rb

Defined Under Namespace

Classes: GitError, Repository

Class Method Summary collapse

Class Method Details

.git_available?Boolean

Is the git executable available?

Returns:

  • (Boolean)


13
14
15
16
17
18
# File 'lib/mj/vcs/git.rb', line 13

def self.git_available?()
    return @git_available unless @git_available.nil?
    %x( git --version 2>&1 )
    @git_available = $?.success?
    return @git_available
end