aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v0/hub.rb
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2007-09-26 13:12:21 +0100
committerRalph Amissah <ralph@amissah.com>2007-09-26 13:12:21 +0100
commita36b83dad3b828761ee565fbb9ff53a5abc6e4b6 (patch)
treef67d113f40bff70f0616c7a03c8bebd126419a5e /lib/sisu/v0/hub.rb
parentsysenv, sisurc.yml allow use of relative output paths, expand to absolute (diff)
help, (hub), minor reorganisation and a change in response for typing 'sisu' without options
Diffstat (limited to 'lib/sisu/v0/hub.rb')
-rw-r--r--lib/sisu/v0/hub.rb17
1 files changed, 7 insertions, 10 deletions
diff --git a/lib/sisu/v0/hub.rb b/lib/sisu/v0/hub.rb
index 52937b8e..47326b88 100644
--- a/lib/sisu/v0/hub.rb
+++ b/lib/sisu/v0/hub.rb
@@ -315,13 +315,9 @@ p "here #{__FILE__} #{__LINE__}" if @opt =~/M/
end
@opt.cmd=@opt.cmd + extra
if @opt.cmd =~/[vVM]/ #% version information
- version=SiSU_Env::Info_version.new.get_version
- rb_ver=SiSU_Env::Info_version.new.rbversion
- if version[:version]
- tell=SiSU_Screen::Ansi.new(@opt.cmd,version[:project],version[:version],version[:date_stamp],version[:date],rb_ver)
- tell.version
- SiSU_Help::Help.new('env',@opt).environment if @opt.cmd =~/V/ and @opt.files.empty? #% environment
- else puts 'SiSU version information not available'
+ if @opt.cmd =~/V/ and @opt.files.empty? #% environment
+ SiSU_Help::Help.new('env',@opt).environment
+ else SiSU_Help::Help.new('env',@opt).sisu_version
end
end
if @opt.cmd =~/^-L$/; SiSU_Help::Help.new('license',@opt).help_request #% version information
@@ -528,8 +524,7 @@ p "here #{__FILE__} #{__LINE__}" if @opt =~/M/
if defined? @@env.path.processing and FileTest.directory?(@@env.path.processing) and @@env.path.processing =~/#{@@env.user}$/ #clean temporary processing directory of content as is located in public area
cd(@@env.path.processing_base_tmp) do
rm_rf(@@env.user) unless @opt.cmd =~/M/
- end
- end
+ end end
elsif @opt.mod.inspect =~/--query/
require "#{SiSU_lib}/sst_identify_markup"
puts SiSU_Markup::Markup_history.new(@opt).query
@@ -550,7 +545,9 @@ p "here #{__FILE__} #{__LINE__}" if @opt =~/M/
else #% help instructions
unless @opt.mod.inspect =~/--convert|--to|--from/
if @opt.mod.inspect =~/--help/ and not @opt.what.empty?; SiSU_Help::Help.new(@opt.what).help_request
- else SiSU_Help::Help.new('list').help_request
+ elsif @opt.mod.inspect =~/--help/; SiSU_Help::Help.new('list').help_request
+ else SiSU_Help::Help.new('env',@opt).sisu_version
+ puts " for HELP type:\n\tsisu --help [help request]\n\tman sisu\n or see the system or online documentation"
end
end
end