Created
February 22, 2012 18:11
-
-
Save timfel/1886415 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RPApplication subclass: #TestApp | |
instanceVariableNames: '' | |
classVariableNames: '' | |
poolDictionaries: '' | |
category: 'TestApp'. | |
echoSomething | |
<get: '/'> | |
self error: 'Shows error info about me'. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
initialize | |
"self initialize" | |
Smalltalk addToStartUpList: self. | |
Smalltalk addToShutDownList: self. | |
startUp | |
"Start this app if running on cloud foundry" | |
(SmalltalkImage current getSystemAttribute: 3) ifNil: [^ self]. | |
self | |
runIn: #deployment | |
on: (SmalltalkImage current getSystemAttribute: 3) asNumber | |
named: 'TestApp'. | |
shutDown | |
self services do: [:each | each stop; waitForStop]. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CloudFoundry generateDroplet. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CloudFoundry new | |
base: 'squeak'; | |
generateDropletWithVNC. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Installer mc directory: '.'; package: 'ConfigurationOfRatPack'; install. | |
((Smalltalk at: #'ConfigurationOfRatPack') project version: '1.0') load: #('default'). | |
Installer mc directory: '.'; package: 'TestApp'; install. | |
(Installer ss project: 'RFB') install: 'RFB'.RFBServer start: 5. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment