m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/lib/statics.rb
blob: 24ca9d608eec3b8ad8a3bcb693f13f47b82c3b3b (plain)
1
2
3
4
5
6
7
8
9
10
require 'fileutils'

def write_statics statics
  statics = statics.each do |filename|
    source = src filename
    target = build filename
    FileUtils.mkdir_p(File.dirname target)
    FileUtils.cp_r source, target
  end
end