Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
SMAK1993 committed Feb 18, 2020
0 parents commit 7c2a022
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "mod/operator"]
path = mod/operator
url = https://github.com/canonical/operator
Empty file added config.yaml
Empty file.
1 change: 1 addition & 0 deletions hooks/start
1 change: 1 addition & 0 deletions lib/ops
Empty file added metadata.yaml
Empty file.
1 change: 1 addition & 0 deletions mod/operator
Submodule operator added at 0f7370
18 changes: 18 additions & 0 deletions src/charm.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import sys
sys.path.append('lib') # noqa: E402

from ops.charm import CharmBase
from ops.main import main


class MyCharm(CharmBase):
def __init__(self, *args):
super().__init__(*args)
self.framework.observe(self.on.start, self.on_start)

def on_start(self, event):
# Handle the start event here.


if __name__ == "__main__":
main(MyCharm)

0 comments on commit 7c2a022

Please sign in to comment.