class Chef::Resource::Subversion

Public Instance Methods

custom_exception_message(e) click to toggle source

Override exception to strip password if any, so it won’t appear in logs and different Chef notifications

# File lib/chef/resource/scm/subversion.rb, line 66
def custom_exception_message(e)
  "#{self} (#{defined_at}) had an error: #{e.class.name}: #{svn_password ? e.message.gsub(svn_password, "[hidden_password]") : e.message}"
end