java.lang.Object
org.kohsuke.github.GHGistUpdater
Builder pattern for updating a Gist.
- Author:
- Martin van Zijl
-
Method Summary
Modifier and TypeMethodDescriptionAdd file gh gist updater.deleteFile
(String fileName) Delete file.description
(String desc) Description gh gist updater.renameFile
(String fileName, String newFileName) Rename file gh gist updater.update()
Updates the Gist based on the parameters specified thus far.updateFile
(String fileName, String content) Update file gh gist updater.updateFile
(String fileName, String newFileName, String content) Update file name and content.
-
Method Details
-
addFile
Add file gh gist updater.- Parameters:
fileName
- the file namecontent
- the content- Returns:
- the gh gist updater
-
deleteFile
Delete file.- Parameters:
fileName
- the file name- Returns:
- the GH gist updater
-
renameFile
Rename file gh gist updater.- Parameters:
fileName
- the file namenewFileName
- the new file name- Returns:
- the gh gist updater
-
updateFile
Update file gh gist updater.- Parameters:
fileName
- the file namecontent
- the content- Returns:
- the gh gist updater
-
updateFile
public GHGistUpdater updateFile(@Nonnull String fileName, @Nonnull String newFileName, @Nonnull String content) Update file name and content.- Parameters:
fileName
- the file namenewFileName
- the new file namecontent
- the content- Returns:
- the gh gist updater
-
description
Description gh gist updater.- Parameters:
desc
- the desc- Returns:
- the gh gist updater
-
update
Updates the Gist based on the parameters specified thus far.- Returns:
- the gh gist
- Throws:
IOException
- the io exception
-