lib/jamf/ruby_extensions/filetest/predicates.rb in ruby-jss-1.6.4 vs lib/jamf/ruby_extensions/filetest/predicates.rb in ruby-jss-2.0.0a10
- old
+ new
@@ -1,6 +1,6 @@
-# Copyright 2020 Pixar
+# Copyright 2022 Pixar
#
# Licensed under the Apache License, Version 2.0 (the "Apache License")
# with the following modification; you may not use this file except in
# compliance with the Apache License and the following modification to it:
@@ -36,9 +36,10 @@
# a regular file but NOT a symlink.
#
def j_real_file?(path)
FileTest.file?(path) && !FileTest.symlink?(path)
end # real_file?
+ alias jss_real_file? j_real_file?
end # module
end # module