class Maintainer::GitRunner
Public Class Methods
install_git!()
click to toggle source
# File lib/maintainer_core/gitRunner.rb, line 8 def install_git!() CommandRunner.execute(command: Commands::Git::Install, error: nil) end
is_git_installed!()
click to toggle source
# File lib/maintainer_core/gitRunner.rb, line 12 def is_git_installed!() version = CommandRunner.execute(command: Commands::Git::Version, error: nil) if /^(\d+)(.\d+)?(.\d+)?$/ =~ version return true end puts "VERSION: #{version}" return false end
uninstall_git!()
click to toggle source
# File lib/maintainer_core/gitRunner.rb, line 4 def uninstall_git!() CommandRunner.execute(command: Commands::Git::Uninstall, error: nil) end