Fixing old updating documentation method, which has no parameters.

This commit is contained in:
Offray Vladimir Luna Cárdenas 2017-04-28 16:19:08 +00:00
parent 3c8c54ea22
commit 0337bd7993

View File

@ -62,7 +62,9 @@ GrafoscopioDocumentation class >> download: fileNameWithRelativePath [
{ #category : #updating } { #category : #updating }
GrafoscopioDocumentation class >> initialize [ GrafoscopioDocumentation class >> initialize [
self update self
update: 'current';
update: 'dataviz'
] ]
{ #category : #updating } { #category : #updating }
@ -76,17 +78,6 @@ GrafoscopioDocumentation class >> isFileUpdatedFor: relativeFilePath [
ifTrue: [ ^ ExternalApp compareHashFor: localFile with: (self current repository lastHashNumberFor: relativeFilePath) ] ifTrue: [ ^ ExternalApp compareHashFor: localFile with: (self current repository lastHashNumberFor: relativeFilePath) ]
] ]
{ #category : #updating }
GrafoscopioDocumentation class >> isUpdated [
^ (self listOutdated isEmpty) ifTrue: [ ^ false ] ifFalse: [ ^ true ]
]
{ #category : #updating }
GrafoscopioDocumentation class >> listOutdated [
"I return the list of all documentent where the local copy and the remote copy doesn't match"
self listOutdatedDocsIn: self current documents
]
{ #category : #updating } { #category : #updating }
GrafoscopioDocumentation class >> listOutdatedDocsIn: aDocumentsListName [ GrafoscopioDocumentation class >> listOutdatedDocsIn: aDocumentsListName [
"I return the list of all documentent where the local copy and the remote copy doesn't match" "I return the list of all documentent where the local copy and the remote copy doesn't match"
@ -147,16 +138,6 @@ GrafoscopioDocumentation class >> openTutorial [
self openNotebookFrom: 'current' At: 1 self openNotebookFrom: 'current' At: 1
] ]
{ #category : #updating }
GrafoscopioDocumentation class >> update [
self isUpdated
ifTrue: [ self inform: 'All documents are already updated' ]
ifFalse: [
self listOutdated do: [ :eachDoc | self download: eachDoc ].
self inform: 'Documentation updating finished']
]
{ #category : #updating } { #category : #updating }
GrafoscopioDocumentation class >> update: aDocumentationName [ GrafoscopioDocumentation class >> update: aDocumentationName [
(self listOutdatedDocsIn: aDocumentationName) (self listOutdatedDocsIn: aDocumentationName)