lib/match/runner.rb in match-0.2.3 vs lib/match/runner.rb in match-0.2.4
- old
+ new
@@ -36,9 +36,10 @@
end
def certificate(params: nil)
cert_type = :distribution
cert_type = :development if params[:type] == "development"
+ cert_type = :enterprise if Match.enterprise? && params[:type] == "enterprise"
certs = Dir[File.join(params[:workspace], "certs", cert_type.to_s, "*.cer")]
keys = Dir[File.join(params[:workspace], "certs", cert_type.to_s, "*.p12")]
if certs.count == 0 or keys.count == 0