2014-10-27 15:00 GMT-03:00 Andreas Wacknitz <a.wacknitz@gmx.de>:
Am 27.10.2014 um 02:01 schrieb phil@highoctane.be:
I've seen a couple configurations retrieve tar files from DropBox.
http://www.smalltalkhub.com/#!/~hernan/ApplicationSecurity loads NaCl library (libsodium) from Dropbox.
See ConfigurationOfNacl>>preLoad
| url fileRef response |
url := self platformLibraryUrl asZnUrl. fileRef := FileSystem disk workingDirectory / url pathSegments last. (response := ZnEasy get: url) isSuccess ifTrue: [ fileRef writeStreamDo: [ : stream | stream nextPutAll: response contents ] ] ifFalse: [ self error: 'Cannot download compiled library file' ]. self uncompress: fileRef.
platformLibraryUrl " Answer a download URL for the compiled version of library "
Smalltalk os isWin32 ifTrue: [ ^ 'http://dl.dropboxusercontent.com/u/103833630/libsodium.zip' ]. Smalltalk os isUnix ifTrue: [ ^ 'http://dl.dropboxusercontent.com/u/103833630/libsodium.so.gz' ]. Smalltalk os isMacOSX ifTrue: [ ^ ' http://dl.dropboxusercontent.com/u/103833630/libsodium.dylib.gz' ]. self error: 'Cannot find library for your OS platform'.
It looks like a good way to solve these things. Forget about Dropbox versioning. But with a proper naming scheme, it is doable.
For me this sounds like a receipt for disaster in the long run.
Is just a resource download, I am running an Iliad web site and two applications for over a year downloading resources like that and never failed, so no disasters.
Version management is about to be able to reliably load versions. Moving parts outside of a controlled environment will make you unhappy sooner or laterâ¦
As Phil said, that is not suitable for versioning, but there is nothing stopping you from implementing or adapting Monticello to the best version management you can imagine. Cheers, Hernán