Class HttpdCloudManagerConditionalHelper

  • All Implemented Interfaces:
    io.wcm.devops.conga.generator.spi.handlebars.HelperPlugin<Object>, io.wcm.devops.conga.generator.spi.Plugin

    public final class HttpdCloudManagerConditionalHelper
    extends Object
    Checks if there is a conditional statement 'httpd.cloudManagerConditional' in the current context. If yes iterates over all environments and renders the body for each with a merged model, each enclosed in an IfDefine statement. If no the body is rendered once with the default model.
    • Constructor Detail

      • HttpdCloudManagerConditionalHelper

        public HttpdCloudManagerConditionalHelper()
    • Method Detail

      • getName

        public String getName()
      • renderBodyContent

        protected void renderBodyContent​(com.github.jknack.handlebars.Options.Buffer buffer,
                                         CharSequence bodyContent,
                                         String targetEnvironment)
                                  throws IOException
        Throws:
        IOException
      • apply

        public final Object apply​(Object context,
                                  com.github.jknack.handlebars.Options options,
                                  io.wcm.devops.conga.generator.spi.handlebars.context.HelperContext pluginContext)
                           throws IOException
        Specified by:
        apply in interface io.wcm.devops.conga.generator.spi.handlebars.HelperPlugin<Object>
        Throws:
        IOException