Sha256: 115181f7a90ca5fa621bc07a274516bf6b2a382ec847727353755df179ef7572

Contents?: true

Size: 1.06 KB

Versions: 90

Compression:

Stored size: 1.06 KB

Contents

require 'plist'
require 'sigh/runner'

module Sigh
  class Manager
    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.expand_path(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.expand_path(output)
    end

    def self.download_all(download_xcode_profiles: false)
      require 'sigh/download_all'
      DownloadAll.new.download_all(download_xcode_profiles: download_xcode_profiles)
    end

    def self.install_profile(profile)
      uuid = FastlaneCore::ProvisioningProfile.uuid(profile)
      ENV["SIGH_UDID"] = ENV["SIGH_UUID"] = uuid if uuid

      FastlaneCore::ProvisioningProfile.install(profile)
    end
  end
end

Version data entries

90 entries across 90 versions & 1 rubygems

Version Path
fastlane-2.61.0.beta.20171005010003 sigh/lib/sigh/manager.rb
fastlane-2.61.0.beta.20171004010004 sigh/lib/sigh/manager.rb
fastlane-2.60.1 sigh/lib/sigh/manager.rb
fastlane-2.60.0 sigh/lib/sigh/manager.rb
fastlane-2.60.0.beta.20171003010003 sigh/lib/sigh/manager.rb
fastlane-2.60.0.beta.20171002010004 sigh/lib/sigh/manager.rb
fastlane-2.60.0.beta.20171001010003 sigh/lib/sigh/manager.rb
fastlane-2.60.0.beta.20170930010003 sigh/lib/sigh/manager.rb
fastlane-2.60.0.beta.20170929010003 sigh/lib/sigh/manager.rb
fastlane-2.60.0.beta.20170928010003 sigh/lib/sigh/manager.rb
fastlane-2.60.0.beta.20170927010003 sigh/lib/sigh/manager.rb
fastlane-2.60.0.beta.20170926010004 sigh/lib/sigh/manager.rb
fastlane-2.59.0 sigh/lib/sigh/manager.rb
fastlane-2.59.0.beta.20170925010002 sigh/lib/sigh/manager.rb
fastlane-2.59.0.beta.20170924010003 sigh/lib/sigh/manager.rb
fastlane-2.59.0.beta.20170923010003 sigh/lib/sigh/manager.rb
fastlane-2.59.0.beta.20170922010003 sigh/lib/sigh/manager.rb
fastlane-2.59.0.beta.20170921010003 sigh/lib/sigh/manager.rb
fastlane-2.58.0 sigh/lib/sigh/manager.rb
fastlane-2.58.0.beta.20170920010003 sigh/lib/sigh/manager.rb