def generate_files
      ip = local_ip
      version = Farmstead::VERSION
      scaffold_path = "#{File.dirname __FILE__}/scaffold"
      scaffold = Dir.glob("#{scaffold_path}/**/*.erb", File::FNM_DOTMATCH)
      scaffold.each do |file|
        basename = File.basename(file)
        folderstruct = file.match("#{scaffold_path}/(.*)")[1]
        if basename != folderstruct
          foldername = File.dirname(folderstruct)
          create_recursive("#{@name}/#{foldername}")
        end
        projectpath = "#{@name}/#{folderstruct}".chomp(".erb")
        template = File.read(file)
        results = ERB.new(template).result(binding)
        copy_to_directory(results, projectpath)
      end
    end
def generate_files
      ip = local_ip
      version = Farmstead::VERSION
      scaffold_path = "#{File.dirname __FILE__}/scaffold"
      scaffold = Dir.glob("#{scaffold_path}/**/*.erb", File::FNM_DOTMATCH)
      scaffold.each do |file|
        basename = File.basename(file)
        folderstruct = file.match("#{scaffold_path}/(.*)")[1]
        if basename != folderstruct
          foldername = File.dirname(folderstruct)
          create_recursive("#{@name}/#{foldername}")
        end
        projectpath = "#{@name}/#{folderstruct}".chomp(".erb")
        template = File.read(file)
        results = ERB.new(template).result(binding)
        copy_to_directory(results, projectpath)
      end
    end
Generate from templates in scaffold