Disabled rbenv execution module for Windows

This commit is contained in:
twangboy 2015-07-14 16:26:52 -06:00
parent 4d929071e1
commit 242fc21765

View file

@ -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.