~cf-charmers/charms/trusty/cf-cloud-controller/trunk

« back to all changes in this revision

Viewing changes to hooks/charmhelpers/contrib/cloudfoundry/contexts.py

  • Committer: Al. Lomov
  • Date: 2014-04-03 08:50:52 UTC
  • Revision ID: lomov.as@gmail.com-20140403085052-0zd8s40oc4pa6bh0
return to revision 7

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
        return hookenv.config()
27
27
 
28
28
 
29
 
class StaticContext(OSContextGenerator):
30
 
    def __init__(self, data):
31
 
        self.data = data
32
 
 
33
 
    def __call__(self):
34
 
        return self.data
35
 
 
36
 
 
37
29
class NatsContext(RelationContext):
38
30
    interface = 'nats'
39
31
    required_keys = ['nats_port', 'nats_host', 'nats_user', 'nats_password']