Sha256: 91d4dd9a0326ee2db473694b4330c942dde56288bfeaace6a855df06b37ea724
Contents?: true
Size: 751 Bytes
Versions: 2
Compression:
Stored size: 751 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ceedling-0.29.1 | lib/ceedling/preprocessinator_file_handler.rb |
ceedling-0.29.0 | lib/ceedling/preprocessinator_file_handler.rb |