File manager - Edit - /opt/saltstack/salt/lib/python3.10/site-packages/salt/modules/__pycache__/rbenv.cpython-310.pyc
Back
o ;j�* � @ s4 d Z ddlZddlZddlZddlZddlZddlZddlZddl m Z e�e�Z ddiZddd�Zdd� Zd d � Zdd� Zd0d d�Zd0dd�Zd1dd�Zd0dd�Zd0dd�Zd0dd�Zd0dd�Zd2dd�Zd2dd�Zd0dd �Zd0d!d"�Zd0d#d$�Zd0d%d&�Zd2d'd(�Z d0d)d�Z!d0d*d+�Z"d2d,d-�Z#d0d.d/�Z$dS )3a� Manage ruby installations with rbenv. rbenv is supported on Linux and macOS. rbenv doesn't work on Windows (and isn't really necessary on Windows as there is no system Ruby on Windows). On Windows, the RubyInstaller and/or Pik are both good alternatives to work with multiple versions of Ruby on the same box. http://misheska.com/blog/2013/06/15/using-rbenv-to-manage-multiple-versions-of-ruby/ .. versionadded:: 0.16.0 � N)�SaltInvocationError�list_�list)� rbenv.root�rbenv.build_envc C s t jj�� rdS dS )z) Only work on POSIX-like systems )FzQThe rbenv execution module failed to load: only available on non-Windows systems.T)�salt�utils�platformZ is_windows� r r �F/opt/saltstack/salt/lib/python3.10/site-packages/salt/modules/rbenv.py�__virtual__! s r c C s, | d u r t jj�d�}|S t jj�| �}|S )N� )r r �args�shlex_split)�s�retr r r �_shlex_split. s �r c C s^ | si } t | t�rtjj�| �} t | t�si } dd� | �� D �D ]}t� d|� d| |<