Mercurial > piecrust2
view piecrust/commands/builtin/info.py @ 2:40fa08b261b9
Added unit tests (using `py.test`) for `Configuration`.
Fixed some configuration module bugs.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Wed, 25 Dec 2013 22:16:46 -0800 |
parents | aaa8fb7c8918 |
children | f485ba500df3 |
line wrap: on
line source
import logging from piecrust.commands.base import ChefCommand logger = logging.getLogger(__name__) class RootCommand(ChefCommand): def __init__(self): super(RootCommand, self).__init__() self.name = 'root' self.description = "Gets the root directory of the current website." def setupParser(self, parser): pass def run(self, ctx): logger.info(ctx.app.root)