![]() Server : Apache/2.4.52 (Ubuntu) System : Linux webserver 6.8.0-49-generic #49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 6 17:42:15 UTC 2 x86_64 User : www-data ( 33) PHP Version : 8.1.2-1ubuntu2.21 Disable Function : NONE Directory : /lib/python3/dist-packages/sos/report/plugins/__pycache__/ |
o i��d� � @ sB d dl Z d dlmZmZmZ G dd� dee�ZG dd� de�ZdS )� N)�Plugin�IndependentPlugin� PluginOptc @ s@ e Zd ZdZdZdZeddedd�gZdZ dd d�Z dd � Zd S )�Npmz&Information from available npm modules�npm)�system�project_path� z+Collect npm modules of project at this path)�default�val_type�desc)r Nc C s | j ||d|d� d S )NF)�suggest_filename�stderr�runat)�add_cmd_output)�self�cmd�filename�working_directory� r �8/usr/lib/python3/dist-packages/sos/report/plugins/npm.py�_get_npm_output s �zNpm._get_npm_outputc C s` | � d�r"tj�tj�| � d���}| jdd|d� | jdd|d� | �dd� | �dd � d S ) Nr z npm ls --json�npm_ls_project)r znpm config list -l�npm_config_list_projectznpm ls -g --json� npm_ls_global�npm_config_list_global)� get_option�os�path�abspath� expanduserr )r r r r r �setup% s ���z Npm.setup)N)�__name__� __module__�__qualname__� short_desc�plugin_name�profilesr �str�option_list�packagesr r! r r r r r s �� r c @ s e Zd ZdZdZdS )�NpmViaNodeJSzG some distribution methods don't provide 'npm' via npm package )�nodejsN)r"