lib/liberty_buildpack/buildpack.rb
def detect
      # jre detections performed during initialization of components
      framework_detections = Buildpack.component_detections @frameworks
      container_detections = Buildpack.component_detections @containers
      raise "Application can not be run by more than one container: #{container_detections.join(', ')}" if container_detections.size > 1
      buildpack_version = @buildpack_version.version_string
      tags = container_detections.empty? ? [] : container_detections
      tags.concat([buildpack_version, @jre_version]) unless tags.empty?
      tags.concat(framework_detections) unless tags.empty?
      tags = tags.flatten.compact
      tags
    end
# Iterates over all of the components to detect if this buildpack can be used to run an application
#
# @return [Array<String>] An array of strings that identify the components and versions that will be used to run
#                         this application.  If no container can run the application, the array will be empty
#                         (+[]+).
Iterates over all of the components to detect if this buildpack can be used to run an application
Iterates over all of the components to detect if this buildpack can be used to run an application
def detect
      framework_detections = Buildpack.component_detections @frameworks
      container_detections = Buildpack.component_detections @containers
      raise "Application can not be run by more than one container: #{container_detections.join(', ')}" if container_detections.size > 1
      buildpack_version = @buildpack_version.version_string
      tags = container_detections.empty? ? [] : container_detections
      tags.concat([buildpack_version, @jre_version]) unless tags.empty?
      tags.concat(framework_detections) unless tags.empty?
      tags = tags.flatten.compact
      tags
    end
def detect framework_detections = Buildpack . component_detections @frameworks container_detections = Buildpack . component_detections @containers raise "Application can not be run by more than one container: #{container_detections.join(', ')}" if container_detections . size > 1 buildpack_version = @buildpack_version . version_string tags = container_detections . empty? ? [ ] : container_detections tags . concat ( [ buildpack_version , @jre_version ] ) unless tags . empty? tags . concat ( framework_detections ) unless tags . empty? tags = tags . flatten . compact tags end
Iterates over all of the components to detect if this buildpack can be used to run an application
Iterates over all of the components to detect if this buildpack can be used to run an application
# jre detections performed during initialization of components
An array of strings that identify the components and versions that will be used to run this application. If no container can run the application, the array will be empty (+[]+).
An array of strings that identify the components and versions that will be used to run this application . If no container can run the application the array will be empty ( + [] + ) .
Array<String>