~gary/charms/oneiric/buildbot-slave/merged-run-as-buildbot

« back to all changes in this revision

Viewing changes to juju_wrapper

  • Committer: Francesco Banconi
  • Date: 2012-02-10 09:44:59 UTC
  • mfrom: (10.2.9 02-09)
  • Revision ID: francesco.banconi@canonical.com-20120210094459-jqcedh8n4hyngsry
[r=bac] Hacking info, juju_wrapper, script test.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
# Copyright 2012 Canonical Ltd.  This software is licensed under the
 
4
# GNU Affero General Public License version 3 (see the file LICENSE).
 
5
 
 
6
[ -n "$RESOLVE_TEST_CHARMS" ] || exec /usr/bin/juju $@
 
7
#set -x
 
8
 
 
9
CHARM_TEST_REPO=~/juju-charms # <---- Change this.
 
10
 
 
11
cmd=$1
 
12
case $cmd in
 
13
deploy)
 
14
    shift
 
15
    charm=$1
 
16
    shift
 
17
    exec /usr/bin/juju deploy --repository $CHARM_TEST_REPO local:$charm $@
 
18
    ;;
 
19
*)
 
20
    exec /usr/bin/juju $@
 
21
    ;;
 
22
esac