Starting implementation of Brew interface.

This commit is contained in:
Offray Vladimir Luna Cárdenas 2024-04-28 07:32:07 -05:00
parent 22f4a3eac7
commit 24ed0af7f5

20
src/ExoRepo/Brew.class.st Normal file
View File

@ -0,0 +1,20 @@
Class {
#name : #Brew,
#superclass : #Object,
#category : #ExoRepo
}
{ #category : #accessing }
Brew class >> install [
"This is a preliminary starting installation script that is not working.
Dependencies and sudo access are not managed here.
For example, doing 'sudo -S base-devel' on Arch based systems or
'brew intall gcc' is yet not managed here."
Smalltalk os isWindows ifTrue: [ ^ nil ].
OSSUnixSubprocess new
shellCommand: '/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"';
redirectStdout;
runAndWaitOnExitDo: [ :command :outString |
^ outString
].
]