Class SnippetGenerator

All Implemented Interfaces:
CapybaraPortingLayer

public class SnippetGenerator extends PageObject
PageObject for the snippet generator to create bits of code for individual steps.
  • Constructor Details

    • SnippetGenerator

      public SnippetGenerator(WorkflowJob context)
      Creates a new page object for the snippet generator.
      Parameters:
      context - job context
  • Method Details

    • getContext

      protected WorkflowJob getContext()
      Overrides:
      getContext in class PageObject
    • generateScript

      public String generateScript()
      Generates the sample pipeline script.
      Returns:
      the generated script