tenquestionmarks/project.py
2017-02-04 21:13:24 -06:00

33 lines
737 B
Python
Executable File

#!/usr/bin/env python
from monarchpass.beedrill import Project, Action, Listener, do
class Tenquestionmarks(Project):
name = "Tenquestionmarks"
author = "Adrian Malacoda"
@Action(
title="Hello World",
command="hello"
)
def hello(self,person="world"):
print "Hello {person}!".format(person=person)
hidave = do(
action="hello",
command="hidave",
kwargs={"person": "Dave"}
)
@Action(
title="Goodbye World",
command="goodbye",
prerequisites=["hello"],
clean_directory=False
)
def goodbye(self):
print "Bye!"
@Listener(before="goodbye")
def goodbyeListener(self):
print "Listened to goodbye!"