class Maintainer::Commands::Git::Install
Public Class Methods
command!()
click to toggle source
# File lib/maintainer_core/commands.rb, line 117 def command!() if OS.isLinix? return ['sudo apt update', 'sudo apt install git'] elsif OS.isMac? return ['git --version'] elsif OS.isWindows? puts "Windows is not currently supported" end end
requires_sudo!()
click to toggle source
# File lib/maintainer_core/commands.rb, line 114 def requires_sudo!() return true end