frank 1.0.11 → 1.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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