gen_unix_domain_socket.pro.write_template module

Module
write_template.py
Copyright
Copyright (C) 2018 Vladimir Roncevic <elektron.ronca@gmail.com> gen_unix_domain_socket 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_unix_domain_socket 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 WriteTemplate with attribute(s) and method(s). Created API for write operation of template content.
class gen_unix_domain_socket.pro.write_template.WriteTemplate(verbose=False)[source]

Bases: ats_utilities.config_io.base_check.FileChecking

Defined class WriteTemplate with attribute(s) and method(s). Created API for write operation of template content. It defines:

attributes:
GEN_VERBOSE - console text indicator for process-phase.
methods:
__init__ - initial constructor.
write - write setup content to files.
__str__ - dunder method for WriteTemplate.
GEN_VERBOSE = 'GEN_UNIX_DOMAIN_SOCKET::PRO::WRITE_TEMPLATE'
VERBOSE = 'ATS_UTILITIES'
write(templates, pro_name, verbose=False)[source]

Write setup content to files.

Parameters:
  • templates (<list>) – templates and contents.
  • pro_name (<str>) – project name.
  • verbose (<bool>) – enable/disable verbose option.
Returns:

boolean status, True (success) | False.

Return type:

<bool>

Exception:

ATSTypeError | ATSBadCallError