lib/sigh/manager.rb in sigh-0.6.0 vs lib/sigh/manager.rb in sigh-0.8.0
- old
+ new
@@ -2,11 +2,10 @@
require 'sigh/spaceship/runner'
module Sigh
class Manager
def self.start
- start = Time.now
path = Sigh::Runner.new.run
return nil unless path
if Sigh.config[:filename]
@@ -23,11 +22,21 @@
puts output.green
return File.expand_path(output)
end
+ def self.download_all
+ require 'sigh/download_all'
+ DownloadAll.new.download_all
+ end
+
def self.install_profile(profile)
Helper.log.info "Installing provisioning profile..."
+
+ require 'sigh/profile_analyser'
+ udid = Sigh::ProfileAnalyser.run(profile)
+ ENV["SIGH_UDID"] = udid if udid
+
profile_path = File.expand_path("~") + "/Library/MobileDevice/Provisioning Profiles/"
profile_filename = ENV["SIGH_UDID"] + ".mobileprovision"
destination = profile_path + profile_filename
# If the directory doesn't exist, make it first