def verify_server_version
      @connected = true

      # the jssuser resource is readable by anyone with a JSS acct
      # regardless of their permissions.
      # However, it's marked as 'deprecated'. Hopefully jamf will
      # keep this basic level of info available for basic authentication
      # and JSS version checking.
      begin
        @server = JSS::Server.new get_rsrc('jssuser')[:user], self
      rescue RestClient::Unauthorized
        raise JSS::AuthenticationError, "Incorrect JSS username or password for '#{@user}@#{@server_host}:#{@port}'."
      end

      min_vers = JSS.parse_jss_version(JSS::MINIMUM_SERVER_VERSION)[:version]
      return if @server.version >= min_vers # we're good...

      err_msg = "JSS version #{@server.raw_version} to low. Must be >= #{min_vers}"
      @connected = false
      raise JSS::UnsupportedError, err_msg
    end
def verify_server_version
      @connected = true

      # the jssuser resource is readable by anyone with a JSS acct
      # regardless of their permissions.
      # However, it's marked as 'deprecated'. Hopefully jamf will
      # keep this basic level of info available for basic authentication
      # and JSS version checking.
      begin
        @server = JSS::Server.new get_rsrc('jssuser')[:user], self
      rescue RestClient::Unauthorized
        raise JSS::AuthenticationError, "Incorrect JSS username or password for '#{@user}@#{@server_host}:#{@port}'."
      end

      min_vers = JSS.parse_jss_version(JSS::MINIMUM_SERVER_VERSION)[:version]
      return if @server.version >= min_vers # we're good...

      err_msg = "JSS version #{@server.raw_version} to low. Must be >= #{min_vers}"
      @connected = false
      raise JSS::UnsupportedError, err_msg
    end
Verify that we can connect with the args provided, and that
 the server version is high enough for this version of ruby-jss.

 This makes the first API GET call and will raise an exception if things
 are wrong, like failed authentication. Will also raise an exception
 if the JSS version is too low
 (see also JSS::Server)

 @return [void]