aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v3/harvest.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sisu/v3/harvest.rb')
-rw-r--r--lib/sisu/v3/harvest.rb11
1 files changed, 8 insertions, 3 deletions
diff --git a/lib/sisu/v3/harvest.rb b/lib/sisu/v3/harvest.rb
index 4ce5a09b..ea967c37 100644
--- a/lib/sisu/v3/harvest.rb
+++ b/lib/sisu/v3/harvest.rb
@@ -70,9 +70,14 @@ module SiSU_Harvest
@env=SiSU_Env::InfoEnv.new
end
def read
- harvest_pth="#{@env.path.webserv}/#{@opt.base_stub}"
- FileUtils::mkdir_p(harvest_pth) unless FileTest.directory?(harvest_pth)
- cases(@opt,@env)
+ begin
+ harvest_pth="#{@env.path.webserv}/#{@opt.base_stub}"
+ FileUtils::mkdir_p(harvest_pth) unless FileTest.directory?(harvest_pth)
+ cases(@opt,@env)
+ rescue
+ ensure
+ SiSU_Env::CreateSite.new(@opt.cmd).cp_css
+ end
end
def help
puts <<WOK