frank 1.0.11 → 1.0.12
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/frank/compile.rb +5 -3
- data/lib/frank/version.rb +1 -1
- metadata +3 -3
data/lib/frank/compile.rb
CHANGED
@@ -66,10 +66,12 @@ module Frank
|
|
66
66
|
# TODO verbose everywhere is lame
|
67
67
|
# create the dump dir, compile templates, copy over static assets
|
68
68
|
def export!
|
69
|
-
|
70
|
-
|
71
|
-
|
69
|
+
folder_exists = File.exist?(Frank.export.path)
|
70
|
+
|
71
|
+
if folder_exists && Frank.export.force
|
72
72
|
FileUtils.rm_rf(Frank.export.path)
|
73
|
+
elsif folder_exists
|
74
|
+
verify_overwriting
|
73
75
|
end
|
74
76
|
|
75
77
|
FileUtils.mkdir(Frank.export.path)
|
data/lib/frank/version.rb
CHANGED
metadata
CHANGED