temp/WalletCompanionFiles/WalletCompanionFiles/ServerReference/pass_signing/lib/sign_pass.rb
# Ensures that the raw pass directory does not contain signatures
Ensures that the raw pass directory does not contain signatures
Ensures that the raw pass directory does not contain signatures
def validate_directory_as_unsigned_raw_pass(force_clean=false)
    if force_clean
      force_clean_raw_pass
    end
    has_manifiest = File.exists?(File.join(self.pass_url, "/manifest.json"))
    puts "Raw pass has manifest? #{has_manifiest}"
    has_signiture = File.exists?(File.join(self.pass_url, "/signature"))
    puts "Raw pass has signature? #{has_signiture}"
    if has_signiture || has_manifiest
      raise RuntimeError, "#{self.pass_url} contains pass signing artificats that need to be removed before signing."
    end
  end
def validate_directory_as_unsigned_raw_pass ( force_clean = false ) if force_clean force_clean_raw_pass end has_manifiest = File . exists? ( File . join ( self . pass_url , "/manifest.json" ) ) puts "Raw pass has manifest? #{has_manifiest}" has_signiture = File . exists? ( File . join ( self . pass_url , "/signature" ) ) puts "Raw pass has signature? #{has_signiture}" if has_signiture || has_manifiest raise RuntimeError , "#{self.pass_url} contains pass signing artificats that need to be removed before signing." end end
Ensures that the raw pass directory does not contain signatures
Ensures that the raw pass directory does not contain signatures
force_clean
<not_specific>