class Passifier::ManifestSignature

Represents the signing of the manifest file aka “signature” file in the archive

Attributes

content[R]
manifest[R]

Public Class Methods

new(manifest, signing) click to toggle source

@param [Passifier::Manifest] manifest The Manifest to base the signature on

# File lib/passifier/manifest_signature.rb, line 11
def initialize(manifest, signing)
  @manifest = manifest
  populate_content(signing)
end

Public Instance Methods

filename() click to toggle source
# File lib/passifier/manifest_signature.rb, line 16
def filename
  "signature"
end

Private Instance Methods

populate_content(signing) click to toggle source

Sign the contents of the Manifest @param [Passifier::Signing] signing The signing to use to generate the signature file @return [String] The content of the manifest signature file aka “signature” in the archive

# File lib/passifier/manifest_signature.rb, line 25
def populate_content(signing)
  @content = signing.sign(manifest.content)
end