Sha256: 0d73fa0d34bf2165f0cb79e30b19cca1d6dd661c71ae258951fdb17a104ec624
Contents?: true
Size: 1.86 KB
Versions: 7
Compression:
Stored size: 1.86 KB
Contents
require 'match/options' require 'match/runner' require 'match/nuke' require 'match/utils' require 'match/table_printer' require 'match/git_helper' require 'match/generator' require 'match/setup' require 'match/encrypt' require 'match/spaceship_ensure' require 'match/change_password' require 'fastlane_core' require 'terminal-table' require 'spaceship' module Match Helper = FastlaneCore::Helper # you gotta love Ruby: Helper.* should use the Helper class contained in FastlaneCore UI = FastlaneCore::UI ROOT = Pathname.new(File.expand_path('../..', __FILE__)) DESCRIPTION = "Easily sync your certificates and profiles across your team using git" def self.environments envs = %w(appstore adhoc development) envs << "enterprise" if self.enterprise? return envs end # @return [Boolean] returns true if the unsupported enterprise mode should be enabled def self.enterprise? force_enterprise = ENV["MATCH_FORCE_ENTERPRISE"] return false if (force_enterprise.kind_of?(String) || force_enterprise.kind_of?(Numeric)) && (force_enterprise.to_s == "0") return false if force_enterprise.kind_of?(String) && (force_enterprise == "" || force_enterprise.casecmp("false") == 0 || force_enterprise.casecmp("no") == 0) return !!force_enterprise end # @return [Boolean] returns true if match should interpret the given [certificate|profile] type as an enterprise one def self.type_is_enterprise?(type) Match.enterprise? && type != "development" end def self.profile_type_sym(type) return :enterprise if self.type_is_enterprise? type return :adhoc if type == "adhoc" return :appstore if type == "appstore" return :development end def self.cert_type_sym(type) return :enterprise if self.type_is_enterprise? type return :development if type == "development" return :distribution end end
Version data entries
7 entries across 7 versions & 1 rubygems