From d41a95421c18b10bb7e100ccd1d4f3e56743b032 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Fri, 19 Oct 2007 02:25:55 +0100 Subject: mostly adjustment to image paths (for local and remote operations) --- lib/sisu/v0/conf.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'lib/sisu/v0/conf.rb') diff --git a/lib/sisu/v0/conf.rb b/lib/sisu/v0/conf.rb index 92632e79..eb054906 100644 --- a/lib/sisu/v0/conf.rb +++ b/lib/sisu/v0/conf.rb @@ -62,6 +62,8 @@ module SiSU_Initialize include SiSU_relaxng require "#{SiSU_lib}/css" include SiSU_Style + #require "#{SiSU_lib}/remote" + #include SiSU_Remote class Source def initialize(opt) @opt=opt @@ -73,6 +75,9 @@ module SiSU_Initialize SiSU_Config.new(@opt).cp_local_images SiSU_Config.new(@opt).cp_external_images SiSU_Config.new(@opt).cp_webserver_images #if @opt.mod.inspect =~/--init(?:ialize)?=site/ + #if @opt.cmd =~/R/ + # SiSU_Config.new(@opt).cp_remote_dirs + #end end end class SiSU_Config #config files such as css are not updated if they already exist unless forced using the --init=site modifier @@ -115,6 +120,13 @@ module SiSU_Initialize SiSU_Env::Create_site.new(@opt.cmd).cp_webserver_images SiSU_Env::Create_system_link.new.images end + #def cp_remote_dirs + # if @opt.cmd =~/R/ + # tell=SiSU_Screen::Ansi.new(@opt.cmd,'invert','Copy webserver/output file images to remote server','') + # tell.colorize unless @opt.cmd =~/q/ + # SiSU_Remote::Put.new(@opt).rsync_base + # end + #end def css tell=SiSU_Screen::Ansi.new(@opt.cmd,'invert','Configuring CSSs','') tell.colorize unless @opt.cmd =~/q/ -- cgit v1.2.3