lib/jss/api_object/distribution_point.rb
# Unmount the distribution point.
#
# Does nothing if it wasn't mounted with #mount.
#
# @return [void]
#
Unmount the distribution point.
Does nothing if it wasn't mounted with #mount.
Unmount the distribution point . Does nothing if it wasn ' t mounted with #mount .
def unmount
      return nil unless mounted?
      if system "/sbin/umount '#{@mountpoint}'"
        sleep 1 
        @mountpoint.rmdir if @mountpoint.directory? && !@mountpoint.mountpoint?
        @mounted = false
      else
        raise JSS::FileServiceError, "There was a problem unmounting #{@mountpoint}"
      end
      nil
    end
def unmount return nil unless mounted? if system "/sbin/umount '#{@mountpoint}'" sleep 1 @mountpoint . rmdir if @mountpoint . directory? && ! @mountpoint . mountpoint? @mounted = false else raise JSS :: FileServiceError , "There was a problem unmounting #{@mountpoint}" end nil end
Unmount the distribution point.
Unmount the distribution point .
# the umount takes time.
None
void