Sha256: dfceb595934ce7116d7b80109bbcebd0082b513cad226a5291726a3c803f84a7

Contents?: true

Size: 543 Bytes

Versions: 3

Compression:

Stored size: 543 Bytes

Contents

module Jkr
  class Analysis
    def self.analyze(env, resultset_num)
      resultset_num = sprintf "%05d", resultset_num.to_i
      resultset_dir = Dir.glob(File.join(env.jkr_result_dir, resultset_num)+"*")
      if resultset_dir.size != 1
        raise RuntimeError.new "cannot specify resultset dir (#{resultset_dir.join(" ")})"
      end
      resultset_dir = resultset_dir.first

      plan = Plan.create_by_result_id(env, resultset_num)
      plan.resultset_dir = File.dirname(plan.file_path)

      plan.do_analysis()
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
jkr-0.2.2 lib/jkr/analysis.rb
jkr-0.2.1 lib/jkr/analysis.rb
jkr-0.1.0 lib/jkr/analysis.rb