diff options
author | Ralph Amissah <ralph@amissah.com> | 2010-05-03 19:14:10 -0400 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2010-05-03 19:14:10 -0400 |
commit | 65124198251d6e0ac59294f76c30644ad4fac6d5 (patch) | |
tree | dc50da8382c66172f740cd233517c7f7243be23e /lib/sisu/v2/conf.rb | |
parent | debian/changelog (2.3.1-1) (diff) | |
parent | update: changelog, version (2.3.2) (diff) |
Merge branch 'upstream' into debian/sid
Diffstat (limited to 'lib/sisu/v2/conf.rb')
-rw-r--r-- | lib/sisu/v2/conf.rb | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/lib/sisu/v2/conf.rb b/lib/sisu/v2/conf.rb index bb586aca..f3f978db 100644 --- a/lib/sisu/v2/conf.rb +++ b/lib/sisu/v2/conf.rb @@ -95,36 +95,30 @@ module SiSU_Initialize @pwd,@home=Dir.pwd,@env.path.home end def make_homepage - tell=SiSU_Screen::Ansi.new(@opt.cmd,'invert','Make homepage','') - tell.colorize unless @opt.cmd =~/q/ + SiSU_Screen::Ansi.new(@opt.cmd,'invert','Make homepage','').colorize unless @opt.cmd =~/q/ SiSU_Env::Create_site.new(@opt.cmd).homepage end def cp_local_images - tell=SiSU_Screen::Ansi.new(@opt.cmd,'invert','Copy images','') - tell.colorize unless @opt.cmd =~/q/ + SiSU_Screen::Ansi.new(@opt.cmd,'invert','Copy images','').colorize unless @opt.cmd =~/q/ SiSU_Env::Create_site.new(@opt.cmd).cp_local_images SiSU_Env::Create_site.new(@opt.cmd).cp_webserver_images_local #this should not have been necessary SiSU_Env::Create_site.new(@opt.cmd).cp_base_images #base images (nav etc.) used by all html end def cp_external_images - tell=SiSU_Screen::Ansi.new(@opt.cmd,'invert','Copy external images','') - tell.colorize if @opt.cmd =~/V/ + SiSU_Screen::Ansi.new(@opt.cmd,'invert','Copy external images','').colorize if @opt.cmd =~/V/ SiSU_Env::Create_site.new(@opt.cmd).cp_external_images end def cp_webserver_images - tell=SiSU_Screen::Ansi.new(@opt.cmd,'invert','Copy webserver/output file images','') - tell.colorize unless @opt.cmd =~/q/ + SiSU_Screen::Ansi.new(@opt.cmd,'invert','Copy webserver/output file images','').colorize unless @opt.cmd =~/q/ SiSU_Env::Create_site.new(@opt.cmd).cp_webserver_images SiSU_Env::Create_system_link.new.images end def css - tell=SiSU_Screen::Ansi.new(@opt.cmd,'invert','Configuring CSSs','') - tell.colorize unless @opt.cmd =~/q/ + SiSU_Screen::Ansi.new(@opt.cmd,'invert','Configuring CSSs','').colorize unless @opt.cmd =~/q/ SiSU_Env::Create_site.new(@opt.cmd).cp_css end def dtd - tell=SiSU_Screen::Ansi.new(@opt.cmd,'invert','Configuring DTDs','') - tell.colorize unless @opt.cmd =~/q/ + SiSU_Screen::Ansi.new(@opt.cmd,'invert','Configuring DTDs','').colorize unless @opt.cmd =~/q/ @rxng=SiSU_relaxng::RelaxNG.new @path.each { |d| mkdir_p(d[1]) unless FileTest.directory?(d[1]) } #ugly code, sort later |