lib/sigh/options.rb in sigh-0.5.2 vs lib/sigh/options.rb in sigh-0.6.0
- old
+ new
@@ -1,6 +1,7 @@
require 'fastlane_core'
+require 'credentials_manager'
module Sigh
class Options
def self.available_options
@@options ||= [
@@ -20,11 +21,11 @@
description: "Renew the development certificate instead of the production one",
is_string: false,
default_value: false),
FastlaneCore::ConfigItem.new(key: :force,
env_name: "SIGH_FORCE",
- description: "Renew non-development provisioning profiles regardless of its state",
+ description: "Renew provisioning profiles regardless of its state",
is_string: false,
default_value: false),
FastlaneCore::ConfigItem.new(key: :app_identifier,
short_option: "-a",
env_name: "SIGH_APP_IDENTIFIER",
@@ -32,22 +33,32 @@
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: ENV["DELIVER_USER"] || 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: "-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.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.new 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),
@@ -60,11 +71,11 @@
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 certificate to use",
+ description: "The ID of the code signing certificate to use (e.g. 78ADL6LVAA) ",
optional: true),
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\")",
@@ -80,9 +91,10 @@
optional: true,
description: "Filename to use for the generated provisioning profile (must include .mobileprovision)",
verify_block: Proc.new do |value|
raise "The output name must end with .mobileprovision".red unless value.end_with?".mobileprovision"
end)
+
]
end
end
end