merge updateCodeSigning and getCodeSigning to syncCodeSigning

This commit is contained in:
Ivan Smolin 2019-02-25 13:39:39 +03:00
parent 982532c200
commit 2061a8cb36
1 changed files with 6 additions and 17 deletions

View File

@ -96,6 +96,11 @@ private_lane :syncCodeSigning do |options|
options_override = load_options_from("configurations.yaml")[type.to_sym]
options = options.merge(options_override)
keychain_password = options[:keychain_password] || prompt(
text: "Please enter your keychain password (account password): ",
secure_text: true
)
match(
app_identifier: options[:app_identifier],
username: options[:username] || options[:apple_id],
@ -105,28 +110,12 @@ private_lane :syncCodeSigning do |options|
storage_mode: "git",
git_url: options[:git_url],
git_branch: "fastlane_certificates",
keychain_password: options[:keychain_password],
keychain_password: keychain_password,
skip_docs: true,
platform: "ios"
)
end
private_lane :getCodeSigning do |options|
keychain_password = prompt(
text: "Please enter your keychain password (account password): ",
secure_text: true
)
options[:readonly] = true
options[:keychain_password] = keychain_password
syncCodeSigning(options)
end
private_lane :updateCodeSigning do |options|
options[:readonly] = false
syncCodeSigning(options)
end
def load_options_from(file_path)
if File.exists? file_path
require "yaml"