blob: 9d76336d764b69039db9a9ac4d7ec5c7ecc9d296 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# frozen_string_literal: true
module Packages
module Rpm
module RepositoryMetadata
class BaseBuilder
def execute
build_empty_structure
end
private
def build_empty_structure
Nokogiri::XML::Builder.new(encoding: 'UTF-8') do |xml|
xml.public_send(self.class::ROOT_TAG, self.class::ROOT_ATTRIBUTES) # rubocop:disable GitlabSecurity/PublicSend
end.to_xml
end
end
end
end
end
|