Adding Brew functionaity.
This commit is contained in:
parent
cc98ba1367
commit
1ab0fccff0
@ -15,3 +15,12 @@ Brew class >> install [
|
|||||||
shellCommand: '/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"';
|
shellCommand: '/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"';
|
||||||
runAndWait)
|
runAndWait)
|
||||||
]
|
]
|
||||||
|
|
||||||
|
{ #category : #accessing }
|
||||||
|
Brew class >> install: packageName [
|
||||||
|
Smalltalk os isWindows ifTrue: [ ^ nil ].
|
||||||
|
^ (GtSubprocessWithInMemoryOutput new
|
||||||
|
shellCommand: 'brew install ', packageName;
|
||||||
|
runAndWait;
|
||||||
|
stdout)
|
||||||
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user