-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 14-08-19 09:42 AM, Gustavo Niemeyer wrote:
> I have never seen myself a single charm that completely ignores
> all the action cues to simply re-read the whole state from the
> ground up,

The cs:~juju-qa/precise/juju-reports charm follows this general
pattern, but there are some specialized hooks: install, start, stop
and upgrade-charm.

config-changed, database-relation-broken, database-relation-changed,
database-relation-departed, and website-relation-changed are all the
same code and read the state afresh every time without reference to
the script name.

The charmworld charm is similar.

Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEcBAEBAgAGBQJT81hrAAoJEK84cMOcf+9h8xkH/3wBuryErE0RV6TAnOY4Oi+A
3Oxxt0G0t8oVJEw8VkxV36UyzkOkBtfrcSE0GovVBocDMem2qiQcFPb6mc1N++Q2
tpQedW1bKBvH6iyA8lO/R/h/4ug/ubKFpuHROhfET4qFN2XDr7PYimEycHFD/Wbg
k78P3YufZEezicnAYyzgMuALMP6K90zAXUG/I3+OvO3fcL1/QfwL9H0QflH8llzv
6LTVtkVX9RyJunLOV6P8SfxjKlttqE88j30F9DrXLTqb8fRsh4qet16/Yj4ib/Vl
dnDW8468wt8HOqDIcV6lTIEKbsSEalsDFNHD5cdzUSBj65W01qwLSCwo/eC5uDc=
=D2ZN
-----END PGP SIGNATURE-----

-- 
Juju-dev mailing list
Juju-dev@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju-dev

Reply via email to