lib/match/options.rb in match-0.2.5 vs lib/match/options.rb in match-0.3.0
- old
+ new
@@ -19,11 +19,11 @@
is_string: true,
short_option: "-y",
default_value: 'development',
verify_block: proc do |value|
unless Match.environments.include?(value)
- raise "Unsupported environment #{value}, must be in #{Match.environments.join(', ')}".red
+ UI.user_error!("Unsupported environment #{value}, must be in #{Match.environments.join(', ')}")
end
end),
FastlaneCore::ConfigItem.new(key: :app_identifier,
short_option: "-a",
env_name: "MATCH_APP_IDENTIFIER",
@@ -85,14 +85,19 @@
verify_block: proc do |value|
unless Helper.test?
if value.start_with?("/var/folders") or value.include?("tmp/") or value.include?("temp/")
# that's fine
else
- raise "Specify the `git_url` instead of the `path`".red
+ UI.user_error!("Specify the `git_url` instead of the `path`")
end
end
end,
- optional: true)
+ optional: true),
+ FastlaneCore::ConfigItem.new(key: :force_for_new_devices,
+ env_name: "MATCH_FORCE_FOR_NEW_DEVICES",
+ description: "Renew the provisioning profiles if the device count on the developer portal has changed",
+ is_string: false,
+ default_value: false)
]
end
end
end