Module: Hotspots::Repository::Git

Defined in:
lib/hotspots/repository/git.rb

Class Method Summary collapse

Class Method Details

.inside_valid_repository?Boolean

Returns:

  • (Boolean)


10
11
12
13
# File 'lib/hotspots/repository/git.rb', line 10

def inside_valid_repository?
  `git status 2>&1`
  $? == 0
end

.installed?Boolean

Returns:

  • (Boolean)


5
6
7
8
# File 'lib/hotspots/repository/git.rb', line 5

def installed?
  `git --help 2>&1`
  $? == 0
end