aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v2/conf.rb
diff options
context:
space:
mode:
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