Sha256: 7e62c5a52d9f5181566c658e4eae8f760df3c8c9915f6a3821c31e62f24e75fc

Contents?: true

Size: 1.52 KB

Versions: 15

Compression:

Stored size: 1.52 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?
    return FastlaneCore::Env.truthy?("MATCH_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

15 entries across 15 versions & 1 rubygems

Version Path
fastlane-2.13.0 match/lib/match.rb
fastlane-2.12.0 match/lib/match.rb
fastlane-2.11.0 match/lib/match.rb
fastlane-2.10.0 match/lib/match.rb
fastlane-2.9.0 match/lib/match.rb
fastlane-2.8.0 match/lib/match.rb
fastlane-2.7.0 match/lib/match.rb
fastlane-2.6.0 match/lib/match.rb
fastlane-2.5.0 match/lib/match.rb
fastlane-2.4.0 match/lib/match.rb
fastlane-2.3.1 match/lib/match.rb
fastlane-2.3.0 match/lib/match.rb
fastlane-2.2.0 match/lib/match.rb
fastlane-2.1.3 match/lib/match.rb
fastlane-2.1.2 match/lib/match.rb