def template_finder(chef_run, cookbook_name)
      if Chef::Provider.const_defined?(:TemplateFinder) # Chef 11+
        Chef::Provider::TemplateFinder.new(chef_run.run_context, cookbook_name, chef_run.node)
      else
        nil
      end
    end
def template_finder(chef_run, cookbook_name)
      if Chef::Provider.const_defined?(:TemplateFinder) # Chef 11+
        Chef::Provider::TemplateFinder.new(chef_run.run_context, cookbook_name, chef_run.node)
      else
        nil
      end
    end
Return a new instance of the TemplateFinder if we are running on Chef 11.

 @param [Chef::RunContext] chef_run
   the run context for the noe
 @param [String] cookbook_name
   the name of the cookbook

 @return [Chef::Provider::TemplateFinder, nil]