Skip to content

Instantly share code, notes, and snippets.

@tinchodias
Last active August 29, 2015 14:25
Show Gist options
  • Save tinchodias/c789ab74e1cb981351c2 to your computer and use it in GitHub Desktop.
Save tinchodias/c789ab74e1cb981351c2 to your computer and use it in GitHub Desktop.
Pharo script to install the script in user system's preferences directory.
| 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