Skip to content
Snippets Groups Projects
Commit 258a579f authored by Markus Reiter's avatar Markus Reiter
Browse files

Make `cask/macos` constants private.

parent 32f5c00b
No related branches found
No related tags found
No related merge requests found
......@@ -238,6 +238,7 @@ module OS
.map(&method(:Pathname))
.to_set
.freeze
private_constant :SYSTEM_DIRS
# TODO: There should be a way to specify a containing
# directory under which nothing can be deleted.
......@@ -380,6 +381,7 @@ module OS
.to_set
.union(SYSTEM_DIRS)
.freeze
private_constant :UNDELETABLE_PATHS
def system_dir?(dir)
SYSTEM_DIRS.include?(Pathname.new(dir).expand_path)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment