Class: Maintainer::Commands::Pip::Install
- Inherits:
-
Object
- Object
- Maintainer::Commands::Pip::Install
- Defined in:
- lib/maintainer_core/commands.rb
Class Method Summary collapse
Class Method Details
.command! ⇒ Object
13 14 15 16 17 18 19 20 21 |
# File 'lib/maintainer_core/commands.rb', line 13 def command!() if OS.isLinix? return ['apt-get install python3-pip'] elsif OS.isMac? return ['brew install python', 'brew unlink python && brew link python'] elsif OS.isWindows? puts "Windows is not currently supported" end end |
.requires_sudo! ⇒ Object
10 11 12 |
# File 'lib/maintainer_core/commands.rb', line 10 def requires_sudo!() return true end |