class Velcro::Status::Git
Provide information about the git installation
Public Class Methods
installed?()
click to toggle source
# File lib/velcro/status/git.rb, line 15 def self.installed? (`which git` =~ /not found/).nil? end
print()
click to toggle source
# File lib/velcro/status/git.rb, line 5 def self.print printf '## Git - ' if installed? puts 'Installed' puts `git --version` else puts 'Not Installed' end end