# File lib/r10k/module/metadata_file.rb, line 18
  def read(metadata_file_path = @metadata_file_path)
    if self.exist?
      metadata_file_path.open do |f|
        begin
          metadata = Puppet::ModuleTool::Metadata.new
          metadata.update(JSON.load(f), false)
        rescue JSON::ParserError => e
          exception = R10K::Error.wrap(e, "Could not read metadata.json")
          raise exception
        end
      end
    end
  end