lib/liberty_buildpack/container/services_manager.rb
#-----------------------------------
# Filter-based plugin resolution mechanism that uses only the services label.
#-----------------------------------
Filter-based plugin resolution mechanism that uses only the services label.
Filter - based plugin resolution mechanism that uses only the services label .
def find_service_plugin_by_label(name)
      candidates =  []
      @config.each do |key, value|
        filter = value['service_filter']
        unless filter.nil?
          filter = Regexp.new(filter) unless filter.is_a?(Regexp)
          candidates.push(key) if name =~ filter
        end
      end
      candidates
    end
def find_service_plugin_by_label ( name ) candidates = [ ] @config . each do | key , value | filter = value [ 'service_filter' ] unless filter . nil? filter = Regexp . new ( filter ) unless filter . is_a? ( Regexp ) candidates . push ( key ) if name =~ filter end end candidates end
Filter-based plugin resolution mechanism that uses only the services label.
Filter - based plugin resolution mechanism that uses only the services label .
name