deliver/lib/deliver/options.rb in fastlane-2.82.0.beta.20180217010002 vs deliver/lib/deliver/options.rb in fastlane-2.82.0.beta.20180218010003

- old
+ new

@@ -15,18 +15,20 @@ [ FastlaneCore::ConfigItem.new(key: :username, short_option: "-u", env_name: "DELIVER_USERNAME", description: "Your Apple ID Username", - default_value: user), + default_value: user, + default_value_dynamic: true), FastlaneCore::ConfigItem.new(key: :app_identifier, short_option: "-a", env_name: "DELIVER_APP_IDENTIFIER", description: "The bundle identifier of your app", optional: true, code_gen_sensitive: true, - default_value: CredentialsManager::AppfileConfig.try_fetch_value(:app_identifier)), + default_value: CredentialsManager::AppfileConfig.try_fetch_value(:app_identifier), + default_value_dynamic: true), FastlaneCore::ConfigItem.new(key: :app, short_option: "-p", env_name: "DELIVER_APP_ID", description: "The app ID of the app you want to use/modify", is_string: false), # don't add any verification here, as it's used to store a spaceship ref @@ -42,10 +44,11 @@ optional: true, env_name: "DELIVER_IPA_PATH", description: "Path to your ipa file", code_gen_sensitive: true, default_value: Dir["*.ipa"].sort_by { |x| File.mtime(x) }.last, + default_value_dynamic: true, verify_block: proc do |value| UI.user_error!("Could not find ipa file at path '#{File.expand_path(value)}'") unless File.exist?(value) UI.user_error!("'#{value}' doesn't seem to be an ipa file") unless value.end_with?(".ipa") end, conflicting_options: [:pkg], @@ -57,10 +60,11 @@ optional: true, env_name: "DELIVER_PKG_PATH", description: "Path to your pkg file", code_gen_sensitive: true, default_value: Dir["*.pkg"].sort_by { |x| File.mtime(x) }.last, + default_value_dynamic: true, verify_block: proc do |value| UI.user_error!("Could not find pkg file at path '#{File.expand_path(value)}'") unless File.exist?(value) UI.user_error!("'#{value}' doesn't seem to be a pkg file") unless value.end_with?(".pkg") end, conflicting_options: [:ipa], @@ -169,20 +173,22 @@ description: "The ID of your iTunes Connect team if you're in multiple teams", optional: true, is_string: false, # as we also allow integers, which we convert to strings anyway code_gen_sensitive: true, default_value: CredentialsManager::AppfileConfig.try_fetch_value(:itc_team_id), + default_value_dynamic: true, verify_block: proc do |value| ENV["FASTLANE_ITC_TEAM_ID"] = value.to_s end), FastlaneCore::ConfigItem.new(key: :team_name, short_option: "-e", env_name: "DELIVER_TEAM_NAME", description: "The name of your iTunes Connect team if you're in multiple teams", optional: true, code_gen_sensitive: true, default_value: CredentialsManager::AppfileConfig.try_fetch_value(:itc_team_name), + default_value_dynamic: true, verify_block: proc do |value| ENV["FASTLANE_ITC_TEAM_NAME"] = value.to_s end), FastlaneCore::ConfigItem.new(key: :dev_portal_team_id, short_option: "-s", @@ -190,19 +196,21 @@ description: "The short ID of your Developer Portal team, if you're in multiple teams. Different from your iTC team ID!", optional: true, is_string: true, code_gen_sensitive: true, default_value: CredentialsManager::AppfileConfig.try_fetch_value(:team_id), + default_value_dynamic: true, verify_block: proc do |value| ENV["FASTLANE_TEAM_ID"] = value.to_s end), FastlaneCore::ConfigItem.new(key: :dev_portal_team_name, short_option: "-y", env_name: "DELIVER_DEV_PORTAL_TEAM_NAME", description: "The name of your Developer Portal team if you're in multiple teams", optional: true, code_gen_sensitive: true, default_value: CredentialsManager::AppfileConfig.try_fetch_value(:team_name), + default_value_dynamic: true, verify_block: proc do |value| ENV["FASTLANE_TEAM_NAME"] = value.to_s end), # rubocop:disable Metrics/LineLength FastlaneCore::ConfigItem.new(key: :itc_provider,