diff options
-rw-r--r-- | lib/statics.rb | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/statics.rb b/lib/statics.rb index 3865439..520e213 100644 --- a/lib/statics.rb +++ b/lib/statics.rb @@ -1,7 +1,8 @@ def write_statics statics - statics = statics.map do | filename | - src filename + statics = statics.each do | filename | + source = src filename + target = build filename + FileUtils.mkdir_p(File.dirname target) + FileUtils.cp_r source, target end - - FileUtils.cp statics, BuildDir end |