code: def _check_and_install_rbenv(ret, user=None):
      '''
      Verify that rbenv is installed, install if unavailable
      '''
      ret = _check_rbenv(ret, user)
      if ret['result'] is False:
          if __salt__['rbenv.install'](user):
              ret['result'] = True
              ret['comment'] = 'Rbenv installed'
          else:
              ret['result'] = False
              ret['comment'] = 'Rbenv failed to install'
      else:
          ret['result'] = True
          ret['comment'] = 'Rbenv is already installed'
  
      return ref _check_and_install_rbenv(ret, user=None):
      '''
      Verify that rbenv is installed, install if unavailable
      '''
      ret = _check_rbenv(ret, user)
      if ret['result'] is False:
          if __salt__['rbenv.install'](user):
              ret['result'] = True
              ret['comment'] = 'Rbenv installed'
          else:
              ret['result'] = False
              ret['comment'] = 'Rbenv failed to install'
      else:
          ret['result'] = True
          ret['comment'] = 'Rbenv is already installed'
  
      return ret
docs: Verify that rbenv is installed, install if unavailable