Skip to content

Commit

Permalink
pipeline(depls): supports symoblic link for ops-files
Browse files Browse the repository at this point in the history
removes the restriction on regular files !

close #33
  • Loading branch information
o-orand committed Oct 6, 2017
1 parent a11be21 commit b1e12f9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scripts/manifest/manifest-lifecycle-generation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ OUTPUT_DIR=${OUTPUT_DIR:-${CURRENT_DIR}/generated-files/}
COMMON_SCRIPT_DIR=${COMMON_SCRIPT_DIR:-scripts-resource/scripts/manifest}

echo "Coping operators files from '${YML_TEMPLATE_DIR}' to '${OUTPUT_DIR}'"
find ${YML_TEMPLATE_DIR} -maxdepth 1 -type f -name "*-operators.yml" -exec cp --verbose {} ${OUTPUT_DIR} \;
find ${YML_TEMPLATE_DIR} -maxdepth 1 -name "*-operators.yml" -exec cp --verbose {} ${OUTPUT_DIR} \;

${COMMON_SCRIPT_DIR}/generate-manifest.sh

Expand Down
4 changes: 2 additions & 2 deletions spec/tasks/generate_manifest/task_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,15 @@
tpl_yml_files .map { |filename| File.basename(filename, '-tpl.yml') }
.each do |base_filename|
expected_filename = File.join(@generated_files, base_filename + '.yml')
expect(File,).to exist(expected_filename)
expect(File).to exist(expected_filename), 'expected ' + base_filename + '.yml'
end
end

it 'copies operators file to generated_files' do
operators_yml_files .map { |filename| File.basename(filename) }
.each do |base_filename|
expected_filename = File.join(@generated_files, base_filename)
expect(File).to exist(expected_filename), 'expected ' + base_filename + ''
expect(File).to exist(expected_filename), 'expected ' + base_filename + 'to exist'
end
end

Expand Down

0 comments on commit b1e12f9

Please sign in to comment.