comparison piecrust/commands/builtin/info.py @ 1:aaa8fb7c8918

Re-arranged modules to reduce dependencies to builtin stuff. Added `init` command.
author Ludovic Chabant <ludovic@chabant.com>
date Sun, 22 Dec 2013 08:00:24 -0800
parents
children f485ba500df3
comparison
equal deleted inserted replaced
0:a212a3f2e3ee 1:aaa8fb7c8918
1 import logging
2 from piecrust.commands.base import ChefCommand
3
4
5 logger = logging.getLogger(__name__)
6
7
8 class RootCommand(ChefCommand):
9 def __init__(self):
10 super(RootCommand, self).__init__()
11 self.name = 'root'
12 self.description = "Gets the root directory of the current website."
13
14 def setupParser(self, parser):
15 pass
16
17 def run(self, ctx):
18 logger.info(ctx.app.root)
19