Ubuntu Pastebin

Paste from cmars at Tue, 31 May 2016 18:44:54 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
metadata.yaml
---
requires:                      
    database:                  
        interface: mongodb     

reactive/whatever.py
---
@when('database.database.available')
def changed_mongodb(db):       
    mongourl = db.connection_string()
    kv().set('mongourl', mongourl)  
    setup()
    remove_state('database.database.available')
Download as text