Class: PropertiesUtil
- Inherits:
 - 
      Object
      
        
- Object
 - PropertiesUtil
 
 
- Defined in:
 - lib/AuthenticationSDK/util/PropertiesUtil.rb
 
Overview
Method for reading Cybs.yml file
Instance Method Summary collapse
Instance Method Details
#getCybsProp(cybs_path) ⇒ Object
      6 7 8 9 10 11 12 13 14 15 16 17 18  | 
    
      # File 'lib/AuthenticationSDK/util/PropertiesUtil.rb', line 6 def getCybsProp(cybs_path) # Give the path of cybs properties file which needs to be read. if File.exist?(cybs_path) # Reading Merchant Config from Cybs.yml File" cybsproperty_obj = YAML.load(File.read(cybs_path)) return cybsproperty_obj elsif !File.exist?(cybs_path) raise Constants::ERROR_PREFIX + Constants::PROPERTY_FILE_NOT_FOUND end rescue StandardError => err raise err # exit! end  |