[Ultrapossum-cvs 423] demo/haviewer/lib 1.2,1.3,ultrapossum.rb

Back to archive index

Masato Taruishi taru****@users*****
2004年 9月 16日 (木) 16:33:37 JST


===================================================================
RCS file: demo/haviewer/lib/ultrapossum.rb,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- demo/haviewer/lib/ultrapossum.rb	2004/09/16 06:04:43	1.2
+++ demo/haviewer/lib/ultrapossum.rb	2004/09/16 07:33:36	1.3
@@ -20,27 +20,6 @@
 
   class Config < Hash
 
-    MODULES = [] 
-    open("|ultrapossum-config module") do |io|
-      io.each_line do |line|
-        MODULES << line.chop!
-      end
-    end
-
-    def Config.variables (mod)
-      variables = []
-      open("|ultrapossum-config variable #{mod}") do |io|
-        io.each_line do |line|
-	  variables << line.chop!
-	end
-      end
-      variables
-    end
-    VARIABLES = {}
-    MODULES.each do |m|
-      VARIABLES[m] = variables(m)
-    end
-
     def initialize( sysconfdir = nil )
       env = ""
       if ! sysconfdir.nil?
@@ -64,12 +43,6 @@
 end
 
 if __FILE__ == $0
-  UltraPossum::Config::MODULES.each do |m|
-    puts m
-    UltraPossum::Config::VARIABLES[m].each do |v|
-      puts "\t#{v}"
-    end
-  end
   conf = UltraPossum::Config.new(ARGV[0])
   conf.each_key do |key|
     puts "#{key} -> #{conf[key]}"



Ultrapossum-cvs メーリングリストの案内
Back to archive index