def write_all
      [:js, :css, :img].each do |type|
        where(spec[type]).download(type) if spec[type]
      end
    end
def write_all
      [:js, :css, :img].each do |type|
        where(spec[type]).download(type) if spec[type]
      end
    end
Depends on yaml files: dont use elsewhere