Jujulabs: stubbing out juju commands to test

Aaron Evans aarone at one-shore.com
Tue Sep 17 22:36:00 UTC 2013


Hi, I'm new to juju.

I'm wondering if there is a way to stub out commands in your install
script, etc

specifically I'm thinking of replacing juju-log with a function that looks
like this in my scripts:

log() {
if hash juju-log 2>/dev/null; then
juju-log $@
else
echo log: $@
fi
}


Thoughts?

-Aaron Evans
http://one-shore.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/jujulabs/attachments/20130917/beab3fc2/attachment.html>


More information about the JujuLabs mailing list