mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #25430 from twangboy/fix_21041_2
Disabled rbenv execution module for Windows
This commit is contained in:
commit
a425230c19
1 changed files with 15 additions and 1 deletions
|
@ -1,6 +1,11 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
'''
|
||||
Manage ruby installations with rbenv.
|
||||
Manage ruby installations with rbenv. Rbenv is supported on Linux and Mac OS X.
|
||||
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
|
||||
'''
|
||||
|
@ -30,6 +35,15 @@ __opts__ = {
|
|||
}
|
||||
|
||||
|
||||
def __virtual__():
|
||||
"""
|
||||
Only work on POSIX-like systems
|
||||
"""
|
||||
if salt.utils.is_windows():
|
||||
return False
|
||||
return True
|
||||
|
||||
|
||||
def _shlex_split(s):
|
||||
# from python:shlex.split: passing None for s will read
|
||||
# the string to split from standard input.
|
||||
|
|
Loading…
Add table
Reference in a new issue