Renaming.

This commit is contained in:
Offray Vladimir Luna Cárdenas 2024-04-01 13:16:55 -05:00
parent 2d811e9f38
commit 83ea8d4310

View File

@ -74,15 +74,6 @@ BreaApp >> folder: aFileDirectory [
folder := aFileDirectory folder := aFileDirectory
] ]
{ #category : #accessing }
BreaApp >> launch [
| defaultRoute |
defaultRoute := 'http://localhost:',self webHost server port asString, '/', self appName.
self webHost
GET: self appName -> [ self defaultView ].
GoogleChrome openWindowOn: defaultRoute
]
{ #category : #accessing } { #category : #accessing }
BreaApp >> name [ BreaApp >> name [
^ name ^ name
@ -98,6 +89,15 @@ BreaApp >> parentFolder: anObject [
self folder: anObject / self name asCamelCase self folder: anObject / self name asCamelCase
] ]
{ #category : #accessing }
BreaApp >> preview [
| defaultRoute |
defaultRoute := 'http://localhost:',self webHost server port asString, '/', self appName.
self webHost
GET: self appName -> [ self defaultView ].
GoogleChrome openWindowOn: defaultRoute
]
{ #category : #accessing } { #category : #accessing }
BreaApp >> webHost [ BreaApp >> webHost [
^ host ifNil: [ host := Teapot allInstances detect: [ :each | each webHost isRunning ]] ^ host ifNil: [ host := Teapot allInstances detect: [ :each | each webHost isRunning ]]