def parse_template_dir
        @dir_list = []
        file_list = []
        @append_templates = []
        @line_templates = []
        @whole_templates = []
        Find.find(@template_path) do |x|
          case
          when File.file?(x) && x !~ /\/jumpstart_config/ then
            file_list << x.sub!(@template_path, '')
          when File.directory?(x) && x !~ /\/jumpstart_config/ then
            @dir_list << x.sub!(@template_path, '')
          when File.file?(x) && x =~ /\/jumpstart_config\/nginx.local.conf/ then
            @nginx_local_template = x
          when File.file?(x) && x =~ /\/jumpstart_config\/nginx.remote.conf/ then
            @nginx_remote_template = x
          end
        end
        file_list.each do |file|
          if file =~ /_([lL]?)\._{1}\w*/
            @append_templates << file
          elsif file =~ /_(\d+)\._{1}\w*/
            @line_templates << file
          else
            @whole_templates << file
          end
        end
      end
def parse_template_dir
        @dir_list = []
        file_list = []
        @append_templates = []
        @line_templates = []
        @whole_templates = []
        Find.find(@template_path) do |x|
          case
          when File.file?(x) && x !~ /\/jumpstart_config/ then
            file_list << x.sub!(@template_path, '')
          when File.directory?(x) && x !~ /\/jumpstart_config/ then
            @dir_list << x.sub!(@template_path, '')
          when File.file?(x) && x =~ /\/jumpstart_config\/nginx.local.conf/ then
            @nginx_local_template = x
          when File.file?(x) && x =~ /\/jumpstart_config\/nginx.remote.conf/ then
            @nginx_remote_template = x
          end
        end
        file_list.each do |file|
          if file =~ /_([lL]?)\._{1}\w*/
            @append_templates << file
          elsif file =~ /_(\d+)\._{1}\w*/
            @line_templates << file
          else
            @whole_templates << file
          end
        end
      end
Parses the contents of the @template_path and sorts ready for template creation.