lib/pilot/options.rb in pilot-1.4.1 vs lib/pilot/options.rb in pilot-1.5.0
- old
+ new
@@ -24,12 +24,12 @@
optional: true,
env_name: "PILOT_IPA",
description: "Path to the ipa file to upload",
default_value: Dir["*.ipa"].first,
verify_block: proc do |value|
- raise "Could not find ipa file at path '#{value}'" unless File.exist? value
- raise "'#{value}' doesn't seem to be an ipa file" unless value.end_with? ".ipa"
+ UI.user_error!("Could not find ipa file at path '#{value}'") unless File.exist? value
+ UI.user_error!("'#{value}' doesn't seem to be an ipa file") unless value.end_with? ".ipa"
end),
FastlaneCore::ConfigItem.new(key: :changelog,
short_option: "-w",
optional: true,
env_name: "PILOT_CHANGELOG",
@@ -65,11 +65,11 @@
short_option: "-e",
env_name: "PILOT_TESTER_EMAIL",
description: "The tester's email",
optional: true,
verify_block: proc do |value|
- raise "Please pass a valid email address" unless value.include? "@"
+ UI.user_error!("Please pass a valid email address") unless value.include? "@"
end),
FastlaneCore::ConfigItem.new(key: :testers_file_path,
short_option: "-c",
env_name: "PILOT_TESTERS_FILE",
description: "Path to a CSV file of testers",
@@ -80,10 +80,10 @@
env_name: "PILOT_WAIT_PROCESSING_INTERVAL",
description: "Interval in seconds to wait for iTunes Connect processing",
default_value: 30,
type: Integer,
verify_block: proc do |value|
- raise "Please enter a valid positive number of seconds" unless value.to_i > 0
+ UI.user_error!("Please enter a valid positive number of seconds") unless value.to_i > 0
end),
FastlaneCore::ConfigItem.new(key: :team_id,
short_option: "-q",
env_name: "PILOT_TEAM_ID",
description: "The ID of your team if you're in multiple teams",