Make cask/macos constants private.
This commit is contained in:
parent
32f5c00be1
commit
258a579fee
@ -238,6 +238,7 @@ module OS
|
|||||||
.map(&method(:Pathname))
|
.map(&method(:Pathname))
|
||||||
.to_set
|
.to_set
|
||||||
.freeze
|
.freeze
|
||||||
|
private_constant :SYSTEM_DIRS
|
||||||
|
|
||||||
# TODO: There should be a way to specify a containing
|
# TODO: There should be a way to specify a containing
|
||||||
# directory under which nothing can be deleted.
|
# directory under which nothing can be deleted.
|
||||||
@ -380,6 +381,7 @@ module OS
|
|||||||
.to_set
|
.to_set
|
||||||
.union(SYSTEM_DIRS)
|
.union(SYSTEM_DIRS)
|
||||||
.freeze
|
.freeze
|
||||||
|
private_constant :UNDELETABLE_PATHS
|
||||||
|
|
||||||
def system_dir?(dir)
|
def system_dir?(dir)
|
||||||
SYSTEM_DIRS.include?(Pathname.new(dir).expand_path)
|
SYSTEM_DIRS.include?(Pathname.new(dir).expand_path)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user