lib/sigh/options.rb in sigh-0.10.9 vs lib/sigh/options.rb in sigh-1.0.0.beta1
- old
+ new
@@ -33,41 +33,34 @@
default_value: CredentialsManager::AppfileConfig.try_fetch_value(:app_identifier)),
FastlaneCore::ConfigItem.new(key: :username,
short_option: "-u",
env_name: "SIGH_USERNAME",
description: "Your Apple ID Username",
- default_value: CredentialsManager::AppfileConfig.try_fetch_value(:apple_id)),
+ default_value: CredentialsManager::AppfileConfig.try_fetch_value(:apple_id),
+ verify_block: Proc.new do |value|
+ CredentialsManager::PasswordManager.shared_manager(value)
+ end),
FastlaneCore::ConfigItem.new(key: :team_id,
- short_option: "-b",
+ short_option: "-t",
env_name: "SIGH_TEAM_ID",
description: "The ID of your team if you're in multiple teams",
optional: true,
- default_value: CredentialsManager::AppfileConfig.try_fetch_value(:team_id),
- verify_block: proc do |value|
- ENV["FASTLANE_TEAM_ID"] = value
+ verify_block: Proc.new do |value|
+ ENV["FASTLANE_TEAM_ID"] = value
end),
- FastlaneCore::ConfigItem.new(key: :team_name,
- short_option: "-l",
- env_name: "SIGH_TEAM_NAME",
- description: "The name of your team if you're in multiple teams",
- optional: true,
- default_value: CredentialsManager::AppfileConfig.try_fetch_value(:team_name),
- verify_block: proc do |value|
- ENV["FASTLANE_TEAM_NAME"] = value
- end),
FastlaneCore::ConfigItem.new(key: :provisioning_name,
short_option: "-n",
env_name: "SIGH_PROVISIONING_PROFILE_NAME",
description: "The name of the profile that is used on the Apple Developer Portal",
optional: true),
FastlaneCore::ConfigItem.new(key: :output_path,
short_option: "-o",
env_name: "SIGH_OUTPUT_PATH",
description: "Directory in which the profile should be stored",
default_value: ".",
- verify_block: proc do |value|
- raise "Could not find output directory '#{value}'".red unless File.exist?(value)
+ verify_block: Proc.new do |value|
+ raise "Could not find output directory '#{value}'".red unless File.exists?(value)
end),
FastlaneCore::ConfigItem.new(key: :cert_id,
short_option: "-i",
env_name: "SIGH_CERTIFICATE_ID",
description: "The ID of the code signing certificate to use (e.g. 78ADL6LVAA) ",
@@ -75,29 +68,22 @@
FastlaneCore::ConfigItem.new(key: :cert_owner_name,
short_option: "-c",
env_name: "SIGH_CERTIFICATE",
description: "The certificate name to use for new profiles, or to renew with. (e.g. \"Felix Krause\")",
optional: true),
+ FastlaneCore::ConfigItem.new(key: :cert_date,
+ short_option: "-d",
+ env_name: "SIGH_CERTIFICATE_EXPIRE_DATE",
+ description: "The certificate with the given expiry date used to renew. (e.g. \"Nov 11, 2017\")",
+ optional: true),
FastlaneCore::ConfigItem.new(key: :filename,
- short_option: "-q",
+ short_option: "-f",
env_name: "SIGH_PROFILE_FILE_NAME",
optional: true,
description: "Filename to use for the generated provisioning profile (must include .mobileprovision)",
- verify_block: proc do |value|
- raise "The output name must end with .mobileprovision".red unless value.end_with? ".mobileprovision"
- end),
- FastlaneCore::ConfigItem.new(key: :skip_fetch_profiles,
- env_name: "SIGH_SKIP_FETCH_PROFILES",
- description: "Skips the verification of existing profiles which is useful if you have thousands of profiles",
- is_string: false,
- default_value: false,
- short_option: "-w"),
- FastlaneCore::ConfigItem.new(key: :skip_certificate_verification,
- short_option: '-z',
- env_name: "SIGH_SKIP_CERTIFICATE_VERIFICATION",
- description: "Skips the verification of the certificates for every existing profiles. This will make sure the provisioning profile can be used on the local machine",
- is_string: false,
- default_value: false)
+ verify_block: Proc.new do |value|
+ raise "The output name must end with .mobileprovision".red unless value.end_with?".mobileprovision"
+ end)
]
end
end
end