fix CreatePushCertificate lane

This commit is contained in:
Ivan Smolin 2020-07-21 14:44:30 +03:00
parent 80eafad3fe
commit 08d11652ab
1 changed files with 5 additions and 2 deletions

View File

@ -91,7 +91,7 @@ private_lane :addShield do |options|
.split(/(?=[A-Z])/) # -> ["Enterprise", "Customer", "Dev1", "Without", "S", "S", "L", "Pinning", "Release"]
.map { |v| v.gsub(/[[:lower:]]+/, "") }[1..2] # -> ["E", "C", "D1", "W", "S", "S", "L", "P", "R"] -> ["C", "D1"]
.join # -> "CD1"
begin
add_badge(
shield: "#{buildDescription}-#{buildNumber}-green",
@ -186,7 +186,10 @@ private_lane :buildArchive do |options|
)
end
lane :createPushCertificate do |options|
lane :CreatePushCertificate do |options|
configuration = get_configuration_for_type(options[:type] || "development")
options = configuration.to_options.merge(options)
certificates_path = File.expand_path "../Certificates"
Dir.mkdir(certificates_path) unless File.directory?(certificates_path)