Sha256: 43e3cb4acd5f82efbbc59a321de942ba1a50b88a3f0f5a7e31b3d9e3772a8ac2
Contents?: true
Size: 730 Bytes
Versions: 12
Compression:
Stored size: 730 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
12 entries across 12 versions & 1 rubygems