Re: [Pharo-users] Pharo Launcher and Command Line

2019-02-08 Thread Christophe Demarey
Hi Sergio,

> Le 5 févr. 2019 à 14:55, sergio ruiz  a écrit :
> 
> Hey, all.
> 
> I REALLY dig the pharo launcher! this is a great addition.
> 
> One quick question.
> 
> How do i go about running a method from the command line?
> 
> Specifically, I usually run something like:
> 
> ./pharo Pharo.image ../scripts/setup-client-application.st 
> 
> 
> To set up a new image with the current project.

This feature is not yet available in Pharo Launcher.
We are working to provide a configuration per image / template where you could 
describe a specific vm to run your image or a script to run at the image 
creation to load packages, etc.

For now, what you could do, is to have a CI job preparing the image with all 
you need for you, zip it, and use it as a template from Pharo Launcher. It is 
already doable from https://ci.inria.fr/pharo-contribution/. If your project is 
private, then you could add a source to a private Jenkins server.

> I am not sure which executable to run with this that will execute the same 
> executable as pharo launcher.

Pharo Launcher stores its vms under $HOME/Documents/Pharo/vms
If you want to run the same VM as PharoLaucher, you just need to know the Pharo 
version of the image (e.g. 70) and the architecture (e.g. 64 bits).
Then you can run you image with 
$HOME/Documents/Pharo/vms/70-x64/Pharo.app/Contents/MacOS/Pharo Pharo.image 
../scripts/setup-client-application.st  
(the end of the  path on windows or linux to the executable will change a bit)

Hope this helps,
Christophe

[Pharo-users] Pharo Launcher and Command Line

2019-02-05 Thread sergio ruiz
Hey, all.

I REALLY dig the pharo launcher! this is a great addition.

One quick question.

How do i go about running a method from the command line?

Specifically, I usually run something like:

./pharo Pharo.image ../scripts/setup-client-application.st

To set up a new image with the current project.

I am not sure which executable to run with this that will execute the same
executable as pharo launcher.

Thanks!


peace,
sergio
photographer, journalist, visionary

Public Key: http://bit.ly/29z9fG0
#BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV
http://www.codeandmusic.com
http://www.twitter.com/sergio_101
http://www.facebook.com/sergio101