[BACKLOG-194] RepositoryPublishResource.writeFile refactor, doc, and test
Merge pull request #1771 from scottyaslan/oemdocDevBranch

[BACKLOG-194] RepositoryPublishResource.writeFile refactor, doc, and tes...