Class GHGistUpdater


  • public class GHGistUpdater
    extends Object
    Builder pattern for updating a Gist.
    Author:
    Martin van Zijl
    • Method Detail

      • addFile

        public GHGistUpdater addFile​(String fileName,
                                     String content)
                              throws IOException
        Add file gh gist updater.
        Parameters:
        fileName - the file name
        content - 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 name
        newFileName - 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 name
        content - 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