Starting implementation of Brew interface.
This commit is contained in:
parent
22f4a3eac7
commit
24ed0af7f5
20
src/ExoRepo/Brew.class.st
Normal file
20
src/ExoRepo/Brew.class.st
Normal 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
|
||||
].
|
||||
]
|
Loading…
Reference in New Issue
Block a user