Skip to content

Commit

Permalink
now we can deploy and test.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ducasse committed Jun 24, 2024
1 parent 07c9967 commit f798a98
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
29 changes: 29 additions & 0 deletions src/Microdown-Blog-Tests/MicDummyBlogDeployer.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,32 @@ MicDummyBlogDeployer >> deploy [
writeStreamDo: [ :st |
st nextPutAll: MicBlogCreatorTest new fileContent3 ]
]

{ #category : 'as yet unclassified' }
MicDummyBlogDeployer >> go [
"self new go"

self deploy.
MicBlogCreator
createFrom: FileSystem workingDirectory / 'sourceDummy'
to: FileSystem workingDirectory / 'outputDummy'.
self launchHTTPServer.
self launchBrowser.

]

{ #category : 'odit' }
MicDummyBlogDeployer >> launchBrowser [
WebBrowser openOn: 'http://localhost:9090/file1.html'
]

{ #category : 'doit' }
MicDummyBlogDeployer >> launchHTTPServer [
(ZnServer defaultOn: 9090) start.
ZnServer default
delegate:
(ZnStaticFileServerDelegate new
directory: '/Users/ducasse/Documents/Pharo/images/P12PillarSlide/outputDummy/html' asFileReference;
yourself).

]
3 changes: 2 additions & 1 deletion src/Microdown-Blog/MicBlogCreator.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,8 @@ MicBlogCreator >> targetDirectory [
MicBlogCreator >> targetDirectory: aFileReference [

targetDirectory := aFileReference.

aFileReference ensureDeleteAll.
aFileReference ensureCreateDirectory.
sum targetDirectory: targetDirectory
]

Expand Down

0 comments on commit f798a98

Please sign in to comment.