Sha256: e2fcd95f0f61d9539e195a50cbeb7a1b664fcea24b01e52093c1d4ebd5f67629
Contents?: true
Size: 746 Bytes
Versions: 10
Compression:
Stored size: 746 Bytes
Contents
class PreprocessinatorFileHandler constructor :preprocessinator_extractor, :configurator, :tool_executor, :file_path_utils, :file_wrapper def preprocess_file(filepath, includes) preprocessed_filepath = @file_path_utils.form_preprocessed_file_filepath(filepath) command = @tool_executor.build_command_line(@configurator.tools_test_file_preprocessor, filepath, preprocessed_filepath) @tool_executor.exec(command[:line], command[:options]) contents = @preprocessinator_extractor.extract_base_file_from_preprocessed_expansion(preprocessed_filepath) includes.each{|include| contents.unshift("#include \"#{include}\"")} @file_wrapper.write(preprocessed_filepath, contents.join("\n")) end end
Version data entries
10 entries across 10 versions & 1 rubygems