lib/sigh/runner.rb in sigh-1.9.0 vs lib/sigh/runner.rb in sigh-1.10.0
- old
+ new
@@ -115,11 +115,10 @@
certificate: cert)
profile
end
# Certificate to use based on the current distribution mode
- # rubocop:disable Metrics/AbcSize
def certificate_to_use
if profile_type == Spaceship.provisioning_profile.Development
certificates = Spaceship.certificate.development.all
elsif profile_type == Spaceship.provisioning_profile.InHouse
certificates = Spaceship.certificate.in_house.all
@@ -168,10 +167,9 @@
end
return certificates if Sigh.config[:development] # development profiles support multiple certificates
return certificates.first
end
- # rubocop:enable Metrics/AbcSize
# Downloads and stores the provisioning profile
def download_profile(profile)
UI.important "Downloading provisioning profile..."
profile_name ||= "#{profile.class.pretty_type}_#{Sigh.config[:app_identifier]}.mobileprovision" # default name