Ubuntu Pastebin

Paste from Wes Mason at Wed, 13 Jan 2016 10:05:43 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/env python3

# Load modules from $CHARM_DIR/lib
import os
import sys
sys.path.append('lib')

# This is an upgrade-charm context, make sure we install latest deps
os.unlink('wheelhouse/.bootstrapped')

from charms.bootstrap import bootstrap_charm_deps
bootstrap_charm_deps()


# This will load and run the appropriate @hook and other decorated
# handlers from $CHARM_DIR/reactive, $CHARM_DIR/hooks/reactive,
# and $CHARM_DIR/hooks/relations.
#
# See https://jujucharms.com/docs/stable/getting-started-with-charms-reactive
# for more information on this pattern.
from charms.reactive import main
main()
Download as text