Sha256: a5a2342584583df1a49ba63636f61fd6458780c7cb1182e8b6dc8720e8f0973b
Contents?: true
Size: 1.34 KB
Versions: 2
Compression:
Stored size: 1.34 KB
Contents
require 'ceedling/constants' class ProjectConfigManager attr_reader :options_files, :release_config_changed, :test_config_changed, :test_defines_changed attr_accessor :config_hash constructor :cacheinator, :configurator, :yaml_wrapper, :file_wrapper def setup @options_files = [] @release_config_changed = false @test_config_changed = false @test_defines_changed = false end def merge_options(config_hash, option_filepath) @options_files << File.basename( option_filepath ) config_hash.deep_merge!( @yaml_wrapper.load( option_filepath ) ) end def process_release_config_change # has project configuration changed since last release build @release_config_changed = @cacheinator.diff_cached_release_config?( @config_hash ) end def process_test_config_change # has project configuration changed since last test build @test_config_changed = @cacheinator.diff_cached_test_config?( @config_hash ) end def process_test_defines_change(files) # has definitions changed since last test build @test_defines_changed = @cacheinator.diff_cached_test_defines?( files ) if @test_defines_changed # update timestamp for rake task prerequisites @file_wrapper.touch( @configurator.project_test_force_rebuild_filepath ) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ceedling-0.29.1 | lib/ceedling/project_config_manager.rb |
ceedling-0.29.0 | lib/ceedling/project_config_manager.rb |