~benji/charms/oneiric/buildbot-slave/small-tweaks

« back to all changes in this revision

Viewing changes to juju_wrapper

  • Committer: Francesco Banconi
  • Date: 2012-02-29 11:11:25 UTC
  • mfrom: (15.1.1 revision-and-wrapper)
  • Revision ID: francesco.banconi@canonical.com-20120229111125-kxbgjgwt6pdra330
[r=gmb] Added revision file. Removed juju_wrapper.

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