lib/liberty_buildpack/framework/contrast_security_agent.rb
def add_plugins(contrast)
      plugin_group = contrast.add_element('plugins')

      (plugin_group.add_element 'plugin').add_text("#{PLUGIN_PACKAGE}.security.SecurityPlugin")
      (plugin_group.add_element 'plugin').add_text("#{PLUGIN_PACKAGE}.architecture.ArchitecturePlugin")
      (plugin_group.add_element 'plugin').add_text("#{PLUGIN_PACKAGE}.appupdater.ApplicationUpdatePlugin")
      (plugin_group.add_element 'plugin').add_text("#{PLUGIN_PACKAGE}.sitemap.SitemapPlugin")
      (plugin_group.add_element 'plugin').add_text("#{PLUGIN_PACKAGE}.frameworks.FrameworkSupportPlugin")
      (plugin_group.add_element 'plugin').add_text("#{PLUGIN_PACKAGE}.http.HttpPlugin")
    end
#-----------------------------------------------------------------------------------------
# Creates an instance, passing in a context of information available to the component
#
# @param [Hash] context the context that is provided to the instance
# @option context [String] :app_dir the directory that the application exists in
# @option context [Hash] :configuration the properties provided by the user
# @option context [CommonPaths] :common_paths the set of paths common across components that components should reference`
# @option context [Hash] :vcap_services the services bound to the application provided by cf
# @option context [Array<String>] :java_opts an array that Java options can be added to
#-----------------------------------------------------------------------------------------
Creates an instance, passing in a context of information available to the component
Creates an instance passing in a context of information available to the component
def add_plugins(contrast)
      plugin_group = contrast.add_element('plugins')
      (plugin_group.add_element 'plugin').add_text("#{PLUGIN_PACKAGE}.security.SecurityPlugin")
      (plugin_group.add_element 'plugin').add_text("#{PLUGIN_PACKAGE}.architecture.ArchitecturePlugin")
      (plugin_group.add_element 'plugin').add_text("#{PLUGIN_PACKAGE}.appupdater.ApplicationUpdatePlugin")
      (plugin_group.add_element 'plugin').add_text("#{PLUGIN_PACKAGE}.sitemap.SitemapPlugin")
      (plugin_group.add_element 'plugin').add_text("#{PLUGIN_PACKAGE}.frameworks.FrameworkSupportPlugin")
      (plugin_group.add_element 'plugin').add_text("#{PLUGIN_PACKAGE}.http.HttpPlugin")
    end
def add_plugins ( contrast ) plugin_group = contrast . add_element ( 'plugins' ) ( plugin_group . add_element 'plugin' ) . add_text ( "#{PLUGIN_PACKAGE}.security.SecurityPlugin" ) ( plugin_group . add_element 'plugin' ) . add_text ( "#{PLUGIN_PACKAGE}.architecture.ArchitecturePlugin" ) ( plugin_group . add_element 'plugin' ) . add_text ( "#{PLUGIN_PACKAGE}.appupdater.ApplicationUpdatePlugin" ) ( plugin_group . add_element 'plugin' ) . add_text ( "#{PLUGIN_PACKAGE}.sitemap.SitemapPlugin" ) ( plugin_group . add_element 'plugin' ) . add_text ( "#{PLUGIN_PACKAGE}.frameworks.FrameworkSupportPlugin" ) ( plugin_group . add_element 'plugin' ) . add_text ( "#{PLUGIN_PACKAGE}.http.HttpPlugin" ) end
Creates an instance, passing in a context of information available to the component
Creates an instance passing in a context of information available to the component
contrast
context the context that is provided to the instance
context the context that is provided to the instance
context
:java_opts an array that Java options can be added to
: java_opts an array that Java options can be added to