Class: Ensurable::Git
- Inherits:
-
Object
- Object
- Ensurable::Git
- Defined in:
- lib/ensurables/git.rb
Instance Method Summary collapse
Instance Method Details
#installed? ⇒ Boolean
5 6 7 8 9 |
# File 'lib/ensurables/git.rb', line 5 def installed? Open3.popen3('git --version') { |stdin, stdout, stderr| true if stderr.read.empty? } end |