Last active
August 29, 2015 14:25
-
-
Save tinchodias/c789ab74e1cb981351c2 to your computer and use it in GitHub Desktop.
Pharo script to install the script in user system's preferences directory.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| response | | |
response := ZnEasy get: 'http://gist.githubusercontent.com/tinchodias/8be031b15692cd72bb78/raw/d0d1823b36d88742333a4b672b0bcfa4018417c2/installEpiceaTaskClustererStable.st'. | |
response isSuccess | |
ifFalse: [ self error: response printString ] | |
ifTrue: [ | |
(FileLocator preferences asFileReference / 'pharo') ensureCreateDirectory. | |
(FileLocator preferences asFileReference / 'pharo' / 'installEpiceaTaskClustererStable.st') writeStreamDo: [ :stream | | |
stream nextPutAll: response contents ] ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment