-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_Base_Command_.py
64 lines (51 loc) · 2.17 KB
/
_Base_Command_.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# -*- coding: utf-8 -*-
# Copyright (C) 2012-2015 Mag. Christian Tanzer All rights reserved
# Glasauergasse 32, A--1130 Wien, Austria. [email protected]
# #*** <License> ************************************************************#
# This module is part of the program FFG.
#
# This module is licensed under the terms of the BSD 3-Clause License
# <http://www.c-tanzer.at/license/bsd_3c.html>.
# #*** </License> ***********************************************************#
#
#++
# Name
# _Base_Command_
#
# Purpose
# Base command for FFG model and deploy commands
#
# Revision Dates
# 3-Jun-2012 (CT) Creation
# 17-Dec-2013 (CT) Add `httpd_config` to `Config_Dirs._defaults`
# 01-Sep-2014 (MB) Moved to FFG
# 18-Mar-2015 (CT) Added documentation for `Config_Dirs._defaults`
# ««revision-date»»···
#--
from _TFL import TFL
import _TFL.Command
class _Base_Command_ (TFL.Command.Root_Command) :
nick = u"FFG"
class Config (TFL.Command.Root_Command.Config) :
_default = ".ffg.config"
# end class Config
if False : ### enable if you want to override Config_Dirs._defaults
class Config_Dirs (TFL.Command.Root_Command.Config_Dirs) :
"""Define the directories in which config files with relative names are
looked for.
If a config file with a specific name occurs in more than one config
directory, all occurences are read and the values combined. Values
read from later config directories override values defined in
earlier directories.
For an entry like "$app_dir/httpd_config", `$app_dir` will be
replaced by the directory where the `deploy.py` or `Command.py` was
loaded from. Using entries like `~/...` of `$app_dir/...`, allows
easy relocation of the projects files.
"""
### override `_defaults` with the Node-DB Graz specific list of config
### directories
### e.g.,
### _defaults = ("<config-dir-1>", "<config-dir-2>")
# end class Config_Dirs
# end class _Base_Command_
### __END__ _Base_Command_