def signature_save
      manifest            = YAML.load(File.open($config['general']['app_cache'] + "/artifacts/manifest.#{@checksum}.yaml"), safe: true, raise_on_unknown_tag: true)
      manifest['gpgsig']  = @signature

      File.open("#{$config['general']['app_cache']}/artifacts/manifest.#{@checksum}.yaml", 'w') do |fh|
        fh.write YAML.dump(manifest)
      end

      return true

    rescue StandardError
      $logger.error 'Something unexpected occured when updating the manifest file with GPG signature'
      return false
    end
def signature_save
      manifest            = YAML.load(File.open($config['general']['app_cache'] + "/artifacts/manifest.#{@checksum}.yaml"), safe: true, raise_on_unknown_tag: true)
      manifest['gpgsig']  = @signature

      File.open("#{$config['general']['app_cache']}/artifacts/manifest.#{@checksum}.yaml", 'w') do |fh|
        fh.write YAML.dump(manifest)
      end

      return true

    rescue StandardError
      $logger.error 'Something unexpected occured when updating the manifest file with GPG signature'
      return false
    end
def signature_save manifest = YAML . load ( File . open ( $config [ 'general' ] [ 'app_cache' ] + "/artifacts/manifest.#{@checksum}.yaml" ) , safe : true , raise_on_unknown_tag : true ) manifest [ 'gpgsig' ] = @signature File . open ( "#{$config['general']['app_cache']}/artifacts/manifest.#{@checksum}.yaml" , 'w' ) do | fh | fh . write YAML . dump ( manifest ) end return true rescue StandardError $logger . error 'Something unexpected occured when updating the manifest file with GPG signature' return false end
Save the signature into the manifest file
Save the signature into the manifest file