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
- Throws:
IOException
- the io exception
-
deleteFile
Delete file.- Parameters:
fileName
- the file name- Returns:
- the GH gist updater
- Throws:
IOException
- Signals that an I/O exception has occurred.
-
renameFile
public GHGistUpdater renameFile(@Nonnull String fileName, @Nonnull String newFileName) throws IOException Rename file gh gist updater.- Parameters:
fileName
- the file namenewFileName
- the new file name- Returns:
- the gh gist updater
- Throws:
IOException
- the io exception
-
updateFile
public GHGistUpdater updateFile(@Nonnull String fileName, @Nonnull String content) throws IOException Update file gh gist updater.- Parameters:
fileName
- the file namecontent
- the content- Returns:
- the gh gist updater
- Throws:
IOException
- the io exception
-
updateFile
public GHGistUpdater updateFile(@Nonnull String fileName, @Nonnull String newFileName, @Nonnull String content) throws IOException Update file name and content.- Parameters:
fileName
- the file namenewFileName
- the new file namecontent
- the content- Returns:
- the gh gist updater
- Throws:
IOException
- the io exception
-
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
-