class Roma::CheckTc

Public Class Methods

new(storage_path, library_path) click to toggle source
   # File lib/roma/tools/check_tc_flag.rb
 7 def initialize(storage_path, library_path)
 8   @storage_path = storage_path
 9   @library_path = library_path
10 end

Public Instance Methods

check_flag() click to toggle source
   # File lib/roma/tools/check_tc_flag.rb
12 def check_flag
13   status = {}
14   timeout(5){
15     Dir.glob("#{@storage_path}/*.tc").each{|f|
16       res = `#{@library_path}/bin/tchmgr inform #{f}`
17       res =~ /additional flags:(.*)\n/
18       status.store(f, $1)
19     }
20   }
21   status
22 end