Renaming.
This commit is contained in:
parent
2d811e9f38
commit
83ea8d4310
@ -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 ]]
|
||||||
|
Loading…
Reference in New Issue
Block a user