kuzushi 0.0.19 → 0.0.20
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/kuzushi.rb +4 -2
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.20
|
data/lib/kuzushi.rb
CHANGED
@@ -192,8 +192,10 @@ class Kuzushi
|
|
192
192
|
|
193
193
|
def write_file(src, dest, &blk)
|
194
194
|
fetch(src) do |file|
|
195
|
-
|
196
|
-
|
195
|
+
task "write #{dest}" do
|
196
|
+
FileUtils.mkdir_p(File.dirname(dest))
|
197
|
+
File.open(dest,"w") { |f| f.write(blk.call(file)) }
|
198
|
+
end
|
197
199
|
end
|
198
200
|
end
|
199
201
|
|