lib/sigh/runner.rb in sigh-1.2.1 vs lib/sigh/runner.rb in sigh-1.2.2

- old
+ new

@@ -32,11 +32,11 @@ end profile = profile.update! # assign it, as it's a new profile end else - Helper.log.info "No existing profiles, creating a new one for you".yellow + Helper.log.info "No existing profiles found, that match the certificates you have installed, creating a new one for you".yellow ensure_app_exists! profile = create_profile! end raise "Something went wrong fetching the latest profile".red unless profile @@ -162,10 +162,11 @@ def download_profile(profile) Helper.log.info "Downloading provisioning profile...".yellow profile_name ||= "#{profile.class.pretty_type}_#{Sigh.config[:app_identifier]}.mobileprovision" # default name profile_name += '.mobileprovision' unless profile_name.include? 'mobileprovision' - output_path = File.join('/tmp', profile_name) + tmp_path = Dir.mktmpdir("profile_download") + output_path = File.join(tmp_path, profile_name) File.open(output_path, "wb") do |f| f.write(profile.download) end Helper.log.info "Successfully downloaded provisioning profile...".green