<p dir="ltr">On 10 Mar 2013 20:06, "Patrick Hetu" <<a href="mailto:patrick.hetu@gmail.com">patrick.hetu@gmail.com</a>> wrote:<br>
><br>
> In the process of building the Django charm, I realized that a lot of charms are<br>
> repeating the parts that handle VCS. Like:<br>
><br>
>   <a href="http://bazaar.launchpad.net/~charmers/charms/precise/node-app/trunk/view/head:/hooks/install#L28">http://bazaar.launchpad.net/~charmers/charms/precise/node-app/trunk/view/head:/hooks/install#L28</a><br>
>   <a href="http://bazaar.launchpad.net/~charmers/charms/precise/rack/trunk/view/head:/hooks/install#L38">http://bazaar.launchpad.net/~charmers/charms/precise/rack/trunk/view/head:/hooks/install#L38</a><br>
>   <a href="http://bazaar.launchpad.net/~charmers/charms/precise/python-django/trunk/view/head:/hooks/install#L36">http://bazaar.launchpad.net/~charmers/charms/precise/python-django/trunk/view/head:/hooks/install#L36</a><br>

><br>
> There is also a blueprint here:<br>
><br>
>   <a href="https://blueprints.launchpad.net/juju/+spec/juju-charm-app-git-deployment">https://blueprints.launchpad.net/juju/+spec/juju-charm-app-git-deployment</a><br>
><br>
> So, I was thinking that we could create one subordinate charm per VCS to:<br>
><br>
> 1) Reduce the installation time<br>
> 2) Ease the maintenance<br>
> 3) Include more advance stuff like branches, authentification, etc<br>
><br>
> What do you think?</p>
<p dir="ltr">Good idea. Also see my branch with more SCM for node.js. How do you think it should be done? We need some relation to somehow tell the app charm that new content is available. The problem is that relations only work inside hooks, so my cron based polling won't be able to signal new content through the relation.</p>

<p dir="ltr">Marius</p>