aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v2/conf.rb
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2010-05-03 19:09:54 -0400
committerRalph Amissah <ralph@amissah.com>2010-05-03 19:09:54 -0400
commit67e49a2b278b1512fb39a33a779f68a1389f9849 (patch)
treeb53682f4508b7a2a4a0c3042592b4f9f53f83975 /lib/sisu/v2/conf.rb
parentdal_numbering, heading auto-numbering, a fix (diff)
ansi, screen info related, arranging
Diffstat (limited to 'lib/sisu/v2/conf.rb')
-rw-r--r--lib/sisu/v2/conf.rb18
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