~ibmcharmers/charms/trusty/ibm-java-sdk/devel

« back to all changes in this revision

Viewing changes to hooks/leader-elected

  • Committer: Prabakaran Chandrasekaran
  • Date: 2015-12-22 16:44:23 UTC
  • Revision ID: prabacha@in.ibm.com-20151222164423-rkyfk3ac2n74q61z
Intial Commit of IBM Java SDK reactive layer charm

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/env python3
 
2
 
 
3
# Load modules from $CHARM_DIR/lib
 
4
import sys
 
5
sys.path.append('lib')
 
6
 
 
7
from charms.bootstrap import bootstrap_charm_deps
 
8
bootstrap_charm_deps()
 
9
 
 
10
 
 
11
# This will load and run the appropriate @hook and other decorated
 
12
# handlers from $CHARM_DIR/reactive, $CHARM_DIR/hooks/reactive,
 
13
# and $CHARM_DIR/hooks/relations.
 
14
#
 
15
# See https://jujucharms.com/docs/stable/getting-started-with-charms-reactive
 
16
# for more information on this pattern.
 
17
from charms.reactive import main
 
18
main()