lib/troy/site.rb in troy-0.0.21 vs lib/troy/site.rb in troy-0.0.22
- old
+ new
@@ -46,17 +46,18 @@
assets = root.join("assets")
assets.entries.each do |entry|
basename = entry.to_s
next if [".", "..", "javascripts", "stylesheets"].include?(basename)
- FileUtils.cp_r(assets.join(entry), root.join("public/#{basename}"))
+ FileUtils.rm_rf root.join("public/#{basename}")
+ FileUtils.cp_r assets.join(entry), root.join("public/#{basename}")
end
end
#
#
def remove_public_dir
- FileUtils.rm_rf(root.join("public"))
+ FileUtils.rm_rf root.join("public")
end
#
#
def export_pages(file = nil)