Make skeleton path configurable

This commit is contained in:
mvandervoord
2020-03-12 17:08:51 -04:00
parent f5abf20f4b
commit 3cfa437460
4 changed files with 4 additions and 1 deletions
+1
View File
@@ -12,6 +12,7 @@ class CMockConfig
:mock_path => 'mocks',
:mock_prefix => 'Mock',
:mock_suffix => '',
:skeleton_path => '',
:weak => '',
:subdir => nil,
:plugins => [],
+1 -1
View File
@@ -35,7 +35,7 @@ class CMockFileWriter
def append_file(filename, subdir)
raise "Where's the block of data to create?" unless block_given?
full_file_name = "#{@config.mock_path}/#{subdir+'/' if subdir}#{filename}"
full_file_name = "#{@config.skeleton_path}/#{subdir+'/' if subdir}#{filename}"
File.open(full_file_name, 'a') do |file|
yield(file, filename)
end
@@ -2,6 +2,7 @@
:cmock:
:plugins:
- # none
:skeleton_path: system/generated
:systest:
:types: |
@@ -2,6 +2,7 @@
:cmock:
:plugins:
- # none
:skeleton_path: system/generated
:systest:
:types: |