Skip to content

Commit

Permalink
Adding some more doc to the hub template
Browse files Browse the repository at this point in the history
  • Loading branch information
Yomguithereal committed Aug 3, 2013
1 parent 38d3169 commit 0e79a1c
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions colifrapy/templates/main.tpl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# -*- coding: utf-8 -*-

# -------------------------------------------------------------------
# {{project}} Command Line Hub
Expand All @@ -22,7 +22,11 @@ class {{project}}(Colifrapy):
# self.log (Logger Instance)
# self.opts (Options passed to your hub)
# self.controller (Your Controller)


# If you really want to use a constructor for this class,
# do not forget to call the parent's one
# Colifrapy.__init__() with your controller if you want one.

def launch(self):

# Welcoming visitors
Expand All @@ -35,5 +39,8 @@ class {{project}}(Colifrapy):
# Launching
#===========
if __name__ == '__main__':

# Pass a second argument to the constructor with the location of your settings.yml
# if you want it to load from anywhere else than config/settings.yml
hub = {{project}}(Controller)
hub.launch()

0 comments on commit 0e79a1c

Please sign in to comment.