def config_path=(config_path)
      File.open(config_path, 'r') do |fin|
        fin.each do |line|
          line.strip!
          next if line.empty? || line[0] == '#'
          equal_index = line.index('=')
          key = line[0, equal_index].strip.downcase
          value = line[(equal_index+1)..-1].strip
          send("#{key}=", value)
        end
      end
    rescue Errno::ENOENT
      raise "Configuration file couldn't be found. We need #{config_path}"
    end
def config_path=(config_path)
      File.open(config_path, 'r') do |fin|
        fin.each do |line|
          line.strip!
          next if line.empty? || line[0] == '#'
          equal_index = line.index('=')
          key = line[0, equal_index].strip.downcase
          value = line[(equal_index+1)..-1].strip
          send("#{key}=", value)
        end
      end
    rescue Errno::ENOENT
      raise "Configuration file couldn't be found. We need #{config_path}"
    end
you can configure config_path from your code using:
   Melissa.configure do |config|
     config.config_path = "/etc/config/melissa"
   end