code: function readYml(file, fn) {
    fs.readFile(path.resolve(process.cwd(), file), function(err, data) {
  
      if (err) {
        fn(err);
      }
      const resource = yaml.load(data.toString());
      let api = {};
  
      api.resourcePath = resource.resourcePath;
      api.description = resource.description;
      descriptor.apis.push(api);
      resources[resource.resourcePath] = resource;
  
      fn();
    });
  }
docs: Read from yml file
  @api    private
  @param  {String}   file
  @param  {Function} fn