flysh
Version:
DOM Document Object Artifact Collector
49 lines • 1.79 kB
TypeScript
/**
* 'ConfigReader' class helper
*
* Read the settings found from configuration file
*
* Note: 'ENV' variables might be overridden by 'properties.cnf' by 'launch.json', 'tasks.json' and command line (OS).
*/
export declare class ConfigReader {
readonly ENVIRONMENT_KEY_VAUE = "NODE_ENV";
readonly CONFIG_FILE_PATH_VALUE = "./properties.cnf";
readonly CONFIG_FILE_SECTION_DATABASE_NAME = "database";
readonly CONFIG_FILE_SECTION_INSTANCE_NAME = "instance";
readonly CONFIG_FILE_SECTION_MAIN_NAME = "main";
readonly CONFIG_FILE_PROPERTIES_CURRENT_ENVIRONMENT_NAME = "current.environment";
propertiesReader: any;
properties: any;
environment: any;
/**
* Constructor
*/
constructor();
/**
* Loads the environment and configuration file to the class properties
*/
private init;
/**
* Sets the environment from configuration file then eventually overload it by the preseted 'NODE_ENV' value(s).
* This means that 'properties.cnf', 'launch.json' and 'tasks.json' will be overridden as well
*
* @returns Returns the current mode environment
*/
private getENVMode;
/**
* Returns the "section" from 'properties' class attribute (ENV)
*
* @param section 'String' that contains the section to read
* @returns Returns a 'map' value that contains the right section
* @deprecated
*/
getPropSettings(section: string): Map<any, any>;
/**
* Returns the "section" from 'properties' class attribute
*
* @param section 'String' that contains the "section" to read
* @returns Returns a 'map' value that contains the right "section"
*/
getProperties(section: string): Map<any, any>;
}
//# sourceMappingURL=ConfigReader.d.ts.map