From 83ea8d43105ad70118568d597484ff8e5657e25f Mon Sep 17 00:00:00 2001 From: Offray Luna Date: Mon, 1 Apr 2024 13:16:55 -0500 Subject: [PATCH] Renaming. --- repository/Brea/BreaApp.class.st | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/repository/Brea/BreaApp.class.st b/repository/Brea/BreaApp.class.st index cc70765..8746f42 100644 --- a/repository/Brea/BreaApp.class.st +++ b/repository/Brea/BreaApp.class.st @@ -74,15 +74,6 @@ BreaApp >> 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 } BreaApp >> name [ ^ name @@ -98,6 +89,15 @@ BreaApp >> parentFolder: anObject [ 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 } BreaApp >> webHost [ ^ host ifNil: [ host := Teapot allInstances detect: [ :each | each webHost isRunning ]]