관리-도구
편집 파일: apps_manager.cpython-311.pyc
� %�4g � �j � d dl mZ d dl mZ d dl mZ d dlmZ d dlmZ d dlm Z G d� de� � Z d S ) � )�print_function)�division)�absolute_import)�BaseApplicationsManager)�NodeManager)� APP_CONFIGc �T � � e Zd ZdZdZdZdZ� fd�Zeff� fd� Z e d� � � Z� xZS )�ApplicationsManagerz.cl.selector/node-selector.json�nodejs�nodevenv�nodec �p �� t t | � � � t � � � � d S )N)�superr �__init__r )�self� __class__s ��[/opt/cloudlinux/venv/lib64/python3.11/site-packages/clselect/clselectnodejs/apps_manager.pyr zApplicationsManager.__init__ s, �� � �!�4�(�(�1�1�+�-�-�@�@�@�@�@� c �Z �� t t | � � � |||�� � S )N)�patterns)r r �_find_config_files)r � user_name� app_directoryr r s �r r z&ApplicationsManager._find_config_files s* �� ��(�$�/�/�B�B�9�m�fn�B�o�o�or c �h � d� | � � dd� |d � � g}|S )z� Return lines for htaccess that are specific to the nodejs interpreter :param binary_path: path to the environment's node binary :param app_config: application's config dictionary zPassengerNodejs "{}" zPassengerAppType node zPassengerStartupFile {} �startup_file)�format)�binary_path� app_config�specific_liness r �(get_interpreter_specific_passenger_linesz<ApplicationsManager.get_interpreter_specific_passenger_lines s= � � %�+�+�K�8�8�%�'�.�.�z�.�/I�J�J� �� �r ) �__name__� __module__�__qualname__�_USER_CONFIG�INTERPRETER�VENV_DIR�BINARY_NAMEr r r �staticmethodr � __classcell__)r s @r r r s� �� � � � � �4�L��K��H��K�A� A� A� A� A� FP�M� p� p� p� p� p� p� �� � �\�� � � � r r N)� __future__r r r �"clselect.baseclselect.apps_managerr �$clselect.clselectnodejs.node_managerr �(clselect.clselectnodejsuser.environmentsr r � r r �<module>r/ s� �� &� %� %� %� %� %� � � � � � � &� &� &� &� &� &� F� F� F� F� F� F� <� <� <� <� <� <� ?� ?� ?� ?� ?� ?�� � � � �1� � � � � r