Documentation: Cleaning download and updating for particular documents now that we have them generalized.

This commit is contained in:
Offray Vladimir Luna Cárdenas 2016-03-26 11:44:55 +00:00
parent 3e2e38309d
commit 09656266a4

View File

@ -124,36 +124,6 @@ GrafoscopioBrowser class >> docDownloadFor: aDocumentType [
] asJob run. ] asJob run.
] ]
{ #category : #updating }
GrafoscopioBrowser class >> downloadTutorial [
"I download the interactive tutorial in STON format.
If a the tutorial is already present in the system I made a temporal backup and download a new copy"
| client localTutorial temporalBackup remoteTutorial |
localTutorial := './', (self docDataTutorial at: 'relativePath'), (self docDataTutorial at: 'filename').
temporalBackup := './', (self docDataTutorial at: 'relativePath'), 'tutorial.temp.ston'.
remoteTutorial := (self docDataTutorial at: 'remoteRepo'), 'doc/tip/', (self docDataTutorial at: 'relativePath'), (self docDataTutorial at: 'filename').
localTutorial asFileReference exists
ifTrue: [
temporalBackup asFileReference exists ifTrue: [ temporalBackup asFileReference delete].
localTutorial asFileReference renameTo: 'tutorial.temp.ston'
].
[: bar |
bar title: 'Actualizando el tutorial...'.
[client := ZnClient new.
client
get: remoteTutorial;
signalProgress: true;
downloadTo: ('./', (self docDataTutorial at: 'relativePath')). ]
on: HTTPProgress
do: [ :progress |
progress isEmpty ifFalse: [ bar current: progress percentage ].
progress resume ].
] asJob run.
]
{ #category : #'graphical interface' } { #category : #'graphical interface' }
GrafoscopioBrowser class >> downloadingFrom: downloadUrl withMessage: aString into: location [ GrafoscopioBrowser class >> downloadingFrom: downloadUrl withMessage: aString into: location [
@ -563,26 +533,6 @@ GrafoscopioBrowser class >> updateSystem [
] ]
{ #category : #updating }
GrafoscopioBrowser class >> updateTutorial [
"I Update main tutorial from official repository"
| update unnecessaryUpdate |
update := UIManager default
confirm: '¿Desea actualizar el tutorial?'
label: 'Actualizar el tutorial'.
update
ifTrue: [
(self isDocUpdatedFor: 'tutorial')
ifFalse: [self downloadTutorial]
ifTrue: [
unnecessaryUpdate := UIManager default
abort: 'El tutorial ya se encuentra en su versión más reciente.'
title: 'Nada que actualizar!'
]
]
]
{ #category : #updating } { #category : #updating }
GrafoscopioBrowser class >> updateUI [ GrafoscopioBrowser class >> updateUI [
"Updates the User Interface (UI) with new versions of the docking bar or logos where available. Helpful while testing new functionality "Updates the User Interface (UI) with new versions of the docking bar or logos where available. Helpful while testing new functionality