lib/liberty_buildpack/framework/new_relic_agent.rb
#-----------------------------------------------------------------------------------------
# Processes the new relic configuration to obtain the corresponding version and uri of the
# new relic agent jar in the repository root. If the configuration can be processed and the
# uri contains a valid new relic agent jar name, the versioned ID is returned and configuration
# data is initialized.
#
# @return [String] the new relic version ID
#------------------------------------------------------------------------------------------
Processes the new relic configuration to obtain the corresponding version and uri of the
new relic agent jar in the repository root. If the configuration can be processed and the
uri contains a valid new relic agent jar name, the versioned ID is returned and configuration
data is initialized.
Processes the new relic configuration to obtain the corresponding version and uri of the new relic agent jar in the repository root . If the configuration can be processed and the uri contains a valid new relic agent jar name the versioned ID is returned and configuration data is initialized .
def process_config
      begin
        @version, @uri = LibertyBuildpack::Repository::ConfiguredItem.find_item(@configuration)
      rescue => e
        @logger.error("Unable to process the configuration for the New Relic Agent framework. #{e.message}")
      end
      @version.nil? ? nil : "new-relic-#{@version}"
    end
def process_config begin @version , @uri = LibertyBuildpack :: Repository :: ConfiguredItem . find_item ( @configuration ) rescue => e @logger . error ( "Unable to process the configuration for the New Relic Agent framework. #{e.message}" ) end @version . nil? ? nil : "new-relic-#{@version}" end
Processes the new relic configuration to obtain the corresponding version and uri of the
new relic agent jar in the repository root.
Processes the new relic configuration to obtain the corresponding version and uri of the new relic agent jar in the repository root .
the new relic version ID
the new relic version ID
String