Module: Pkg::Sign::Ips

Defined in:
lib/packaging/sign/ips.rb

Class Method Summary collapse

Class Method Details

.sign(ips_dir = 'pkg') ⇒ Object



4
5
6
7
8
9
10
11
12
# File 'lib/packaging/sign/ips.rb', line 4

def sign(ips_dir = 'pkg')
  packages = Dir["#{ips_dir}/**/*.p5p"]
  return if packages.empty?

  Pkg::Util::Gpg.load_keychain if Pkg::Util::Tool.find_tool('keychain')
  packages.each do |p5p_package|
    Pkg::Util::Gpg.sign_file(p5p_package)
  end
end