Class: GeneratorMocks
Instance Method Summary collapse
Instance Method Details
#build_configuration(output_path) ⇒ Object
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
# File 'lib/ceedling/generator_mocks.rb', line 18 def build_configuration( output_path ) config = @configurator.get_cmock_config config[:mock_path] = output_path # Verbosity management for logging messages verbosity = @configurator.project_verbosity # Default to errors and warnings only so we can customize messages inside Ceedling config[:verbosity] = 1 # Extreme ends of verbosity scale case handling if (verbosity == Verbosity::SILENT) # CMock is silent config[:verbosity] = 0 elsif (verbosity == Verbosity::DEBUG) # CMock max verbosity config[:verbosity] = 3 end return config end |
#manufacture(config) ⇒ Object
14 15 16 |
# File 'lib/ceedling/generator_mocks.rb', line 14 def manufacture(config) return CMock.new(config) end |