Hi, I need a framework that will help me make my application configurable. This framework must save and load the application's configuration to/from a file. I'm not happy with the System-Settings framework (that I'm currently using for the Pharo Launcher) that saves executable code because, when the application evolves, the old code in the configuration file might not work with the new application. Is there something around already? -- Damien Cassou http://damiencassou.seasidehosting.st "Success is the ability to go from one failure to another without losing enthusiasm." Winston Churchill
Yes, there is Sebastian Sastre's ConfigurationFiles which work very well. http://www.smalltalkhub.com/#!/~sebastianconcept/ConfigurationFiles HTH Phil On Tue, Nov 4, 2014 at 5:15 PM, Damien Cassou <damien.cassou@gmail.com> wrote:
Hi,
I need a framework that will help me make my application configurable. This framework must save and load the application's configuration to/from a file. I'm not happy with the System-Settings framework (that I'm currently using for the Pharo Launcher) that saves executable code because, when the application evolves, the old code in the configuration file might not work with the new application.
Is there something around already?
-- Damien Cassou http://damiencassou.seasidehosting.st
"Success is the ability to go from one failure to another without losing enthusiasm." Winston Churchill
We use http://smalltalkhub.com/#!/~TaMere/DeployUtils It loads a JSON files in the "config/" directory sitting next to the image. It handles multi-environment with the "PHARO_ENV" env var. We use this to have a different configuration in development/staging/production Check the DUEnvironment class for usage. On Tue, Nov 4, 2014 at 9:01 AM, phil@highoctane.be <phil@highoctane.be> wrote:
Yes, there is Sebastian Sastre's ConfigurationFiles which work very well.
http://www.smalltalkhub.com/#!/~sebastianconcept/ConfigurationFiles
HTH Phil
On Tue, Nov 4, 2014 at 5:15 PM, Damien Cassou <damien.cassou@gmail.com> wrote:
Hi,
I need a framework that will help me make my application configurable. This framework must save and load the application's configuration to/from a file. I'm not happy with the System-Settings framework (that I'm currently using for the Pharo Launcher) that saves executable code because, when the application evolves, the old code in the configuration file might not work with the new application.
Is there something around already?
-- Damien Cassou http://damiencassou.seasidehosting.st
"Success is the ability to go from one failure to another without losing enthusiasm." Winston Churchill
And the real repo is: https://github.com/fstephany/DeployUtils On Tue, Nov 4, 2014 at 9:41 AM, François Stephany <tulipe.moutarde@gmail.com
wrote:
We use http://smalltalkhub.com/#!/~TaMere/DeployUtils It loads a JSON files in the "config/" directory sitting next to the image. It handles multi-environment with the "PHARO_ENV" env var.
We use this to have a different configuration in development/staging/production
Check the DUEnvironment class for usage.
On Tue, Nov 4, 2014 at 9:01 AM, phil@highoctane.be <phil@highoctane.be> wrote:
Yes, there is Sebastian Sastre's ConfigurationFiles which work very well.
http://www.smalltalkhub.com/#!/~sebastianconcept/ConfigurationFiles
HTH Phil
On Tue, Nov 4, 2014 at 5:15 PM, Damien Cassou <damien.cassou@gmail.com> wrote:
Hi,
I need a framework that will help me make my application configurable. This framework must save and load the application's configuration to/from a file. I'm not happy with the System-Settings framework (that I'm currently using for the Pharo Launcher) that saves executable code because, when the application evolves, the old code in the configuration file might not work with the new application.
Is there something around already?
-- Damien Cassou http://damiencassou.seasidehosting.st
"Success is the ability to go from one failure to another without losing enthusiasm." Winston Churchill
I use JSON for that purpose. Then it's a tree of nested dictionaries. No more than two levels though. You could also use STON. I know you asked for a framework, but unless you need something very specific, JSON is, IMO, the simplest thing that could possibly work. Esteban A. Maringolo 2014-11-04 13:15 GMT-03:00 Damien Cassou <damien.cassou@gmail.com>:
Hi,
I need a framework that will help me make my application configurable. This framework must save and load the application's configuration to/from a file. I'm not happy with the System-Settings framework (that I'm currently using for the Pharo Launcher) that saves executable code because, when the application evolves, the old code in the configuration file might not work with the new application.
Is there something around already?
-- Damien Cassou http://damiencassou.seasidehosting.st
"Success is the ability to go from one failure to another without losing enthusiasm." Winston Churchill
Hi Damien, I use a small extension to SystemSettings which handles checking that the target class exist before executing the setting. However you lose the runOnce ability. Thierry 2014-11-04 17:15 GMT+01:00 Damien Cassou <damien.cassou@gmail.com>:
Hi,
I need a framework that will help me make my application configurable. This framework must save and load the application's configuration to/from a file. I'm not happy with the System-Settings framework (that I'm currently using for the Pharo Launcher) that saves executable code because, when the application evolves, the old code in the configuration file might not work with the new application.
Is there something around already?
-- Damien Cassou http://damiencassou.seasidehosting.st
"Success is the ability to go from one failure to another without losing enthusiasm." Winston Churchill
participants (5)
-
Damien Cassou -
Esteban A. Maringolo -
François Stephany -
phil@highoctane.be -
Thierry Goubier