Sha256: 15f263b4d4918455d6d91ecea1c3b93d0a0320403a8237e8190ee974a2d5cb28
Contents?: true
Size: 1.8 KB
Versions: 2
Compression:
Stored size: 1.8 KB
Contents
require 'match/version' 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__)) 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
match-1.0.0 | lib/match.rb |
match-0.11.1 | lib/match.rb |