Method: Pkg::Rpm::Repo.sign_repos

Defined in:
lib/packaging/rpm/repo.rb

.sign_repos(directory) ⇒ Object



144
145
146
147
148
149
# File 'lib/packaging/rpm/repo.rb', line 144

def sign_repos(directory)
  files_to_sign = Find.find(directory).select { |file| file.match(/repomd.xml$/) }
  files_to_sign.each do |file|
    Pkg::Util::Gpg.sign_file(file)
  end
end