Package org.kohsuke.github
Class GHGistUpdater
- java.lang.Object
-
- org.kohsuke.github.GHGistUpdater
-
public class GHGistUpdater extends Object
Builder pattern for updating a Gist.- Author:
- Martin van Zijl
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GHGistUpdateraddFile(String fileName, String content)Add file gh gist updater.GHGistUpdaterdescription(String desc)Description gh gist updater.GHGistUpdaterrenameFile(String fileName, String newFileName)Rename file gh gist updater.GHGistupdate()Updates the Gist based on the parameters specified thus far.GHGistUpdaterupdateFile(String fileName, String content)Update file gh gist updater.
-
-
-
Method Detail
-
addFile
public GHGistUpdater addFile(String fileName, String content) throws IOException
Add file gh gist updater.- Parameters:
fileName- the file namecontent- the content- Returns:
- the gh gist updater
- Throws:
IOException- the io exception
-
renameFile
public GHGistUpdater renameFile(String fileName, 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(String fileName, 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
-
description
public GHGistUpdater description(String desc)
Description gh gist updater.- Parameters:
desc- the desc- Returns:
- the gh gist updater
-
update
public GHGist update() throws IOException
Updates the Gist based on the parameters specified thus far.- Returns:
- the gh gist
- Throws:
IOException- the io exception
-
-