Class: Sigh::Manager
- Inherits:
-
Object
- Object
- Sigh::Manager
- Defined in:
- sigh/lib/sigh/manager.rb
Class Method Summary collapse
- .download_all(download_xcode_profiles: false) ⇒ Object
- .install_profile(profile) ⇒ Object
- .start ⇒ Object
Class Method Details
.download_all(download_xcode_profiles: false) ⇒ Object
33 34 35 36 |
# File 'sigh/lib/sigh/manager.rb', line 33 def self.download_all(download_xcode_profiles: false) require 'sigh/download_all' DownloadAll.new.download_all(download_xcode_profiles: download_xcode_profiles) end |
.install_profile(profile) ⇒ Object
38 39 40 41 42 43 44 45 |
# File 'sigh/lib/sigh/manager.rb', line 38 def self.install_profile(profile) uuid = FastlaneCore::ProvisioningProfile.uuid(profile) name = FastlaneCore::ProvisioningProfile.name(profile) ENV["SIGH_UDID"] = ENV["SIGH_UUID"] = uuid if uuid ENV["SIGH_NAME"] = name if name FastlaneCore::ProvisioningProfile.install(profile) end |
.start ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'sigh/lib/sigh/manager.rb', line 7 def self.start path = Sigh::Runner.new.run return nil unless path if Sigh.config[:filename] file_name = Sigh.config[:filename] else file_name = File.basename(path) end FileUtils.mkdir_p(Sigh.config[:output_path]) output = File.join(File.(Sigh.config[:output_path]), file_name) begin FileUtils.mv(path, output) rescue # in case it already exists end install_profile(output) unless Sigh.config[:skip_install] puts(output.green) return File.(output) end |