244
245
246
247
248
249
250
251
252
253
254
255
|
# File 'spaceship/lib/spaceship/two_step_or_factor_client.rb', line 244
def phone_id_from_number(phone_numbers, phone_number)
phone_numbers.each do |phone|
return phone['id'] if match_phone_to_masked_phone(phone_number, phone['numberWithDialCode'])
end
raise Tunes::Error.new, %(
Could not find a matching phone number to #{phone_number} in #{phone_numbers}.
Make sure your environment variable is set to the correct phone number.
If it is, please open an issue at https://github.com/fastlane/fastlane/issues/new and include this output so we can fix our matcher. Thanks.
)
end
|