Class: Cwb::DirectorySuiteParser

Inherits:
DirectoryParser show all
Defined in:
lib/cwb/directory_suite_parser.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from DirectoryParser

#delegate_execution

Methods inherited from Parser

#delegate_execution, #execute, #init_config, #initialize

Constructor Details

This class inherits a constructor from Cwb::Parser

Class Method Details

.suite_file_present?(path) ⇒ Boolean

Returns:

  • (Boolean)


5
6
7
# File 'lib/cwb/directory_suite_parser.rb', line 5

def self.suite_file_present?(path)
  File.exists?(self.suite_file_path(path)) && !File.read(self.suite_file_path(path)).empty?
end

Instance Method Details

#benchmark_suiteObject



16
17
18
# File 'lib/cwb/directory_suite_parser.rb', line 16

def benchmark_suite
  init_classes(read_lines(suite_file_path)).first
end

#validateObject

Suite file does definitely exist, otherwise the usual direcoy parser implementation would have been chosen instead.



11
12
13
14
# File 'lib/cwb/directory_suite_parser.rb', line 11

def validate
  super
  require_all(read_lines(suite_file_path))
end