def config
      @config ||= begin
        raise(ConfigError, "Cannot find config file: #{file_name}") unless File.exist?(file_name)

        env_config = YAML.load(ERB.new(File.new(file_name).read).result)[env]
        raise(ConfigError, "Cannot find environment: #{env} in config file: #{file_name}") unless env_config

        env_config = self.class.send(:deep_symbolize_keys, env_config)
        self.class.send(:migrate_old_formats!, env_config)
      end
    end
def config
      @config ||= begin
        raise(ConfigError, "Cannot find config file: #{file_name}") unless File.exist?(file_name)

        env_config = YAML.load(ERB.new(File.new(file_name).read).result)[env]
        raise(ConfigError, "Cannot find environment: #{env} in config file: #{file_name}") unless env_config

        env_config = self.class.send(:deep_symbolize_keys, env_config)
        self.class.send(:migrate_old_formats!, env_config)
      end
    end
Load the Encryption Configuration from a YAML file.

 See: `.load!` for parameters.
 Returns [Hash] the configuration for the supplied environment.