override_file_applies?

in cookbooks/fb_storage/libraries/format_devices_provider.rb [85:117]


      def override_file_applies?(verb, fname, quiet = false)
        if File.exist?(fname)
          base_msg = "fb_storage: System has #{fname} file present"
          if node['fb_storage']['_clowntown_override_file_method']
            ret = node['fb_storage']['_clowntown_override_file_method'].call(
              node, verb, fname, quiet
            )
            unless quiet
              if ret
                Chef::Log.warn(
                  "#{base_msg} and the override check succeeded, will " +
                  "#{verb} all disks on this system",
                )
              else
                Chef::Log.warn(
                  "#{base_msg} but the override check failed, therefore we " +
                  'are ignoring it',
                )
              end
            end
            return ret
          end
          unless quiet
            Chef::Log.warn(
              "#{base_msg} but the override check method is not defined, " +
              'therefore we are ignoring it.',
            )
          end
          return false
        end
        false
      end