Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions deps/layer/apt
Submodule apt added at 5c6920
7 changes: 6 additions & 1 deletion layer.yaml
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
includes: ['layer:basic'] # if you use any interfaces, add them here
includes: ['layer:basic', 'layer:apt'] # if you use any interfaces, add them here

options:
apt:
packages:
- git
16 changes: 15 additions & 1 deletion reactive/simple_react.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from charmhelpers.core.hookenv import status_set
from charmhelpers.core.hookenv import log

import charms.apt

@when_not('simple-react.installed')
def install_simple_react():
Expand All @@ -19,5 +20,18 @@ def install_simple_react():
#
print("I hope this is logged!")
set_state('simple-react.installed')
status_set("active", "Ready")
status_set("maintenance", " Im not Ready")
log("Installation complete")


@when('apt.installed.git')
def foo_baar():
status_set('active', "Git ready")
#set_state('erik.flaggade')


#@when('erik.flaggade')
#@when_not('apt.installed.git')
#def eriksfunkltion():
# log("Erik flaggade")
# clear_flag('erik.flaggade')