We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f19bb8 commit 1d9d3b4Copy full SHA for 1d9d3b4
lib/puppet/util/monkey_patches.rb
@@ -33,7 +33,7 @@ def daemonize
33
unless Dir.singleton_methods.include?(:exists?)
34
class Dir
35
def self.exists?(file_name)
36
- warn('exists? is a deprecated name, use exist? instead')
+ warn("Dir.exists?('#{file_name}') is deprecated, use Dir.exist? instead") if $VERBOSE
37
Dir.exist?(file_name)
38
end
39
@@ -42,7 +42,7 @@ def self.exists?(file_name)
42
unless File.singleton_methods.include?(:exists?)
43
class File
44
45
+ warn("File.exists?('#{file_name}') is deprecated, use File.exist? instead") if $VERBOSE
46
File.exist?(file_name)
47
48
0 commit comments