diff options
Diffstat (limited to 'lib/sisu/v0/conf.rb')
-rw-r--r-- | lib/sisu/v0/conf.rb | 12 |
1 files changed, 12 insertions, 0 deletions
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/ |