mirror of
https://github.com/ThrowTheSwitch/CMock.git
synced 2026-06-06 05:25:29 +00:00
56d13b90f6
git-svn-id: http://cmock.svn.sourceforge.net/svnroot/cmock/trunk@19 bf332499-1b4d-0410-844d-d2d48d5cc64c
21 lines
701 B
Ruby
21 lines
701 B
Ruby
|
|
require "#{$here}/cmock_generator_plugin_ignore.rb"
|
|
require "#{$here}/cmock_generator_plugin_cexception.rb"
|
|
|
|
class CMockPluginManager
|
|
|
|
def initialize(config, utils)
|
|
@config = config
|
|
@utils = utils
|
|
end
|
|
|
|
def get_generator_plugins
|
|
@plugins = []
|
|
@plugins << CMockGeneratorPluginCException.new( @config, @utils ) if @config.use_cexception
|
|
@plugins << CMockGeneratorPluginIgnore.new( @config, @utils ) if @config.allow_ignore_mock
|
|
return @plugins
|
|
end
|
|
end
|
|
|
|
#!!!!!!!!!!!!!!!!!!!!!!!!! eventually I plan to scan a plugin directory to pull in all this stuff, and maybe check the yaml file after that to see what is currently allowed. that sounds swank, no?
|