aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v6/sysenv.rb
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2014-07-15 19:02:12 -0400
committerRalph Amissah <ralph@amissah.com>2014-07-15 19:02:12 -0400
commit4ef1c3099119cedff245acfe1ef26e5829e5bf62 (patch)
tree889a72066aaf70267f4209fd22dcf3aa6c8bbaa6 /lib/sisu/v6/sysenv.rb
parentv5 v6: base images & css, continue (diff)
v5 v6: document images (more to clean up)sisu_5.5.1
Diffstat (limited to 'lib/sisu/v6/sysenv.rb')
-rw-r--r--lib/sisu/v6/sysenv.rb18
1 files changed, 14 insertions, 4 deletions
diff --git a/lib/sisu/v6/sysenv.rb b/lib/sisu/v6/sysenv.rb
index f1b69edc..72aaf2b9 100644
--- a/lib/sisu/v6/sysenv.rb
+++ b/lib/sisu/v6/sysenv.rb
@@ -2716,7 +2716,11 @@ WOK
else
if @@local_image==true
cmd=@cmd ? @cmd : ''
- SiSU_Screen::Ansi.new(cmd,"WARNING - no local image directory or images:", defaults[:image_local] ).warn unless cmd =~/q/
+ SiSU_Screen::Ansi.new(
+ cmd,
+ "WARNING - no local image directory or images:",
+ defaults[:image_local]
+ ).warn unless cmd =~/q/
@@local_image=false
end
url.images
@@ -2727,14 +2731,20 @@ WOK
if @@image_flag
images=Dir.glob("#{image_external}/*.{png,jpg,gif}")
pth="#{path.webserv}/#{@base_markup_dir_stub}"
- FileUtils::mkdir_p("#{pth}/_sisu/image_external") unless FileTest.directory?("#{pth}/_sisu/image_external")
- images.each { |i| File.install(i,"#{pth}/#{i}") } unless images.length > 0
+ FileUtils::mkdir_p("#{pth}/_sisu/image_external") \
+ unless FileTest.directory?("#{pth}/_sisu/image_external")
+ images.each { |i| File.install(i,"#{pth}/#{i}") } \
+ unless images.length > 0
@@image_flag=false
end
"#{Xx[:html_relative2]}/_sisu/image_external"
else
if @@local_image==true
- SiSU_Screen::Ansi.new(@cmd,"WARNING - image directory for external images or no such images:", :image_external ).warn unless @cmd =~/q/
+ SiSU_Screen::Ansi.new(
+ @cmd,
+ "WARNING - image directory for external images or no such images:",
+ :image_external
+ ).warn unless @cmd =~/q/
@@local_image=false
end
url.images_external