class PropertiesUtil
Method for reading Cybs.yml file
Public Instance Methods
getCybsProp(cybs_path)
click to toggle source
# 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 puts err.message exit! end