class Taeval::Unittest::Config

Attributes

cmd[R]
original[R]
solutions[R]
tool[R]

Public Class Methods

new(conf_h) click to toggle source
# File lib/taeval/unittest/config.rb, line 9
def initialize(conf_h)
  @tool      = conf_h.dig('build', 'tool')
  @cmd       = conf_h.dig('build', 'cmd')
  @original  = path_of(conf_h.fetch('original', ''))
  if !File.exist?(@original)
    raise "Unittest: #{@original} does not exist"
  end
  @solutions = path_of(conf_h.dig('solution', 'path'))
end