Sha256: 74fd49466f439028ee725669e794c7d0fdb121bc2c67f1a0efd5bc5d9a1c0204
Contents?: true
Size: 1.4 KB
Versions: 3
Compression:
Stored size: 1.4 KB
Contents
module Fastlane module Actions module SharedValues SIGH_PROFILE_PATH = :SIGH_PROFILE_PATH SIGH_UDID = :SIGH_UDID end class SighAction def self.run(params) require 'sigh' require 'credentials_manager/appfile_config' type = FastlaneCore::DeveloperCenter::APPSTORE type = FastlaneCore::DeveloperCenter::ADHOC if params.include? :adhoc type = FastlaneCore::DeveloperCenter::DEVELOPMENT if params.include? :development force = params.include? :force return type if Helper.test? app = CredentialsManager::AppfileConfig.try_fetch_value(:app_identifier) raise 'No app_identifier definied in `./fastlane/Appfile`'.red unless app CredentialsManager::PasswordManager.shared_manager(ENV['SIGH_USERNAME']) if ENV['SIGH_USERNAME'] path = FastlaneCore::DeveloperCenter.new.run(app, type, nil, force) output_path = File.expand_path(File.join('.', File.basename(path))) FileUtils.mv(path, output_path) Helper.log.info "Exported provisioning profile to '#{output_path}'".green Actions.sh "open '#{output_path}'" unless params.include? :skip_install Actions.lane_context[SharedValues::SIGH_PROFILE_PATH] = output_path # absolute path Actions.lane_context[SharedValues::SIGH_UDID] = ENV["SIGH_UDID"] if ENV["SIGH_UDID"] # The UDID of the new profile end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
fastlane-0.1.15 | lib/fastlane/actions/sigh.rb |
fastlane-0.1.14 | lib/fastlane/actions/sigh.rb |
fastlane-0.1.13 | lib/fastlane/actions/sigh.rb |