Sha256: 406f8d643c694b95fe2ae0c0ee00d737ed118d534c0c6173a8042a39baf8734d
Contents?: true
Size: 1.2 KB
Versions: 1
Compression:
Stored size: 1.2 KB
Contents
module Fastlane module Actions module SharedValues SIGH_PROFILE_PATH = :SIGH_PROFILE_PATH 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 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) 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 URL end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fastlane-0.1.10 | lib/fastlane/actions/sigh.rb |