lib/liberty_buildpack/container/services_manager.rb
def load_services_config
      config = {}
      # Get the directory where the service yml files are located, read file names then load files and update the config hash.
      services_config_path = File.expand_path(SERVICES_CONFIG_DIR, File.dirname(__FILE__))
      Dir.glob("#{services_config_path}/*.yml").each do |file|
        key = File.basename(file, '.yml')
        config[key] = LibertyBuildpack::Util::ServiceConfigurationUtils.load_user_conf(key, config, file, true, true)
      end
      @logger.debug("config is #{config}")
      config
    end
#-----------------------------------------------
# Load service plugins by reading the yaml files
#-----------------------------------------------
Load service plugins by reading the yaml files
Load service plugins by reading the yaml files
def load_services_config
      config = {}
      services_config_path = File.expand_path(SERVICES_CONFIG_DIR, File.dirname(__FILE__))
      Dir.glob("#{services_config_path}/*.yml").each do |file|
        key = File.basename(file, '.yml')
        config[key] = LibertyBuildpack::Util::ServiceConfigurationUtils.load_user_conf(key, config, file, true, true)
      end
      @logger.debug("config is #{config}")
      config
    end
def load_services_config config = { } services_config_path = File . expand_path ( SERVICES_CONFIG_DIR , File . dirname ( __FILE__ ) ) Dir . glob ( "#{services_config_path}/*.yml" ) . each do | file | key = File . basename ( file , '.yml' ) config [ key ] = LibertyBuildpack :: Util :: ServiceConfigurationUtils . load_user_conf ( key , config , file , true , true ) end @logger . debug ( "config is #{config}" ) config end
Load service plugins by reading the yaml files
Load service plugins by reading the yaml files
# Get the directory where the service yml files are located, read file names then load files and update the config hash.