/
_Base_Command_.py
57 lines (45 loc) · 1.8 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
# -*- coding: utf-8 -*-
# Copyright (C) 2012-2013 Mag. Christian Tanzer All rights reserved
# Glasauergasse 32, A--1130 Wien, Austria. tanzer@swing.co.at
# #*** <License> ************************************************************#
# This module is part of the program FFM.
#
# This module is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This module is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this module. If not, see <http://www.gnu.org/licenses/>.
# #*** </License> ***********************************************************#
#
#++
# Name
# _Base_Command_
#
# Purpose
# Base command for FFM model and deploy commands
#
# Revision Dates
# 3-Jun-2012 (CT) Creation
# 17-Dec-2013 (CT) Add `httpd_config` to `Config_Dirs._defaults`
# ««revision-date»»···
#--
from __future__ import absolute_import, division, print_function, unicode_literals
from _TFL import TFL
import _TFL.Command
class _Base_Command_ (TFL.Command.Root_Command) :
nick = u"FFM"
class Config_Dirs (TFL.Command.Root_Command.Config_Dirs) :
_defaults = ("~/", "$app_dir/../..", "~/httpd_config", "$app_dir/httpd_config")
# end class Config_Dirs
class Config (TFL.Command.Root_Command.Config) :
_default = ".ffm.config"
# end class Config
# end class _Base_Command_
### __END__ _Base_Command_