java.lang.Object
org.kohsuke.github.GHGistBuilder
Builder pattern for creating a new Gist.
- Author:
- Kohsuke Kawaguchi
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreate()
Creates a Gist based on the parameters specified thus far.description
(String desc) Description gh gist builder.File gh gist builder.public_
(boolean v) Public gh gist builder.
-
Constructor Details
-
GHGistBuilder
Instantiates a new Gh gist builder.- Parameters:
root
- the root
-
-
Method Details
-
description
Description gh gist builder.- Parameters:
desc
- the desc- Returns:
- the gh gist builder
-
public_
Public gh gist builder.- Parameters:
v
- the v- Returns:
- the gh gist builder
-
file
File gh gist builder.- Parameters:
fileName
- the file namecontent
- the content- Returns:
- Adds a new file.
-
create
Creates a Gist based on the parameters specified thus far.- Returns:
- created Gist
- Throws:
IOException
- if Gist cannot be created.
-