Alex Hudson
2010-07-06 21:42:33 UTC
Hey everyone
I committed some changes to the Bongo PHP binding earlier
today to make the class structure a bit more 'standard', in particular to
make it more autoloader friendly. Other bits of code we have in the repo
which depend on this code aren't quite yet updated, but will be soon
hopefully.
I've also added some code to it to pull out some basic
configuration from a file. The idea here being to pull together the basic
bits of config enough to contact the store. The idea was we'd have an
/etc/bongo.conf with a basic JSON doc, something like this:
{
"type" :
"bongo-config",
"version" : 1,
"stores" : [
{
"shortname": "local",
"host": "localhost",
"port": 689
},
{
"shortname": "shell",
"host":
"shell.bongo-project.org",
"post": 1832
}
]
}
I'm thinking on a new
install, the 'stores' bit would only have one entry, and for most people it
would either stay that was or be slightly edited.
Our various commands
and things can be updated to respect this too, and probably the agents too
(rather than the hardcoded stuff we have right now).
Thoughts anyone?
Ta
Alex.
I committed some changes to the Bongo PHP binding earlier
today to make the class structure a bit more 'standard', in particular to
make it more autoloader friendly. Other bits of code we have in the repo
which depend on this code aren't quite yet updated, but will be soon
hopefully.
I've also added some code to it to pull out some basic
configuration from a file. The idea here being to pull together the basic
bits of config enough to contact the store. The idea was we'd have an
/etc/bongo.conf with a basic JSON doc, something like this:
{
"type" :
"bongo-config",
"version" : 1,
"stores" : [
{
"shortname": "local",
"host": "localhost",
"port": 689
},
{
"shortname": "shell",
"host":
"shell.bongo-project.org",
"post": 1832
}
]
}
I'm thinking on a new
install, the 'stores' bit would only have one entry, and for most people it
would either stay that was or be slightly edited.
Our various commands
and things can be updated to respect this too, and probably the agents too
(rather than the hardcoded stuff we have right now).
Thoughts anyone?
Ta
Alex.