gen_vhost package

Module contents

Module
__init__.py
Copyright
Copyright (C) 2017 Vladimir Roncevic <elektron.ronca@gmail.com> gen_vhost is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. gen_vhost 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 General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
Info
Defined class GenVHost with attribute(s) and method(s). Load a base info, create an CLI interface and run operation(s).
class gen_vhost.GenVHost(verbose=False)[source]

Bases: ats_utilities.cli.cfg_cli.CfgCLI

Defined class GenVHost with attribute(s) and method(s). Load a base info, create an CLI interface and run operation(s). It defines:

attributes:
__metaclass__ - setting cooperative metaclasses.
GEN_VERBOSE - console text indicator for process-phase.
CONFIG - configuration file path.
LOG - tool log file path.
OPS - list of tool options.
logger - logger object API.
methods:
__init__ - initial constructor.
process - process and run tool option(s).
__str__ - dunder method for GenVHost.
CONFIG = '/conf/gen_vhost.cfg'
GEN_VERBOSE = 'GEN_VHOST'
LOG = '/log/gen_vhost.log'
OPS = ['-g', '--gen', '-v', '--verbose', '--version']
VERBOSE = 'ATS_UTILITIES'
process(verbose=False)[source]

Process and run operation.

Parameters:verbose (<bool>) – enable/disable verbose option.
Returns:boolean status, True (success) | False.
Return type:<bool>
Exceptions:None