Package com.winchesters.devopsify.utils
Class FilesUtils
java.lang.Object
com.winchesters.devopsify.utils.FilesUtils
- Direct Known Subclasses:
DockerfileUtils,JenkinsfileUtils
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncommentAllLinesAfter(int lineNumber) final FilesUtilscommentLine(int lineNumber) protected static StringcommentLine(File file, int lineNumber, String commentCharacter) getLineContaining(String keyword) setFileKeywordValue(String keyword, String value) setFileKeywordValue(Map<String, String> map) unCommentLine(int lineNumber)
-
Field Details
-
COMMENT_CHARACTER
-
fileContent
-
-
Constructor Details
-
FilesUtils
- Throws:
IOException
-
-
Method Details
-
getFileContent
-
commentLine
protected static String commentLine(File file, int lineNumber, String commentCharacter) throws IOException - Throws:
IOException
-
getLineContaining
-
commentLine
-
unCommentLine
-
commentAllLinesAfter
-
setFileKeywordValue
-
setFileKeywordValue
-