Document Utils.

This commit is contained in:
Markus Reiter 2020-08-24 23:54:41 +02:00
parent b92f3a2e93
commit d9c1f6cf2d

View File

@ -8,6 +8,9 @@ require "stringio"
BUG_REPORTS_URL = "https://github.com/Homebrew/homebrew-cask#reporting-bugs" BUG_REPORTS_URL = "https://github.com/Homebrew/homebrew-cask#reporting-bugs"
module Cask module Cask
# Helper functions for various cask operations.
#
# @api private
module Utils module Utils
def self.gain_permissions_remove(path, command: SystemCommand) def self.gain_permissions_remove(path, command: SystemCommand)
if path.respond_to?(:rmtree) && path.exist? if path.respond_to?(:rmtree) && path.exist?