Sha256: 52f081d682fb61e9400caae876247b4768ed15caf384a3e321925390a1e47b4b

Contents?: true

Size: 1.1 KB

Versions: 214

Compression:

Stored size: 1.1 KB

Contents

require_relative 'module'

module Match
  class Setup
    def run(path, is_swift_fastfile: false)
      if is_swift_fastfile
        template = File.read("#{Match::ROOT}/lib/assets/MatchfileTemplate.swift")
      else
        template = File.read("#{Match::ROOT}/lib/assets/MatchfileTemplate")
      end

      UI.important("Please create a new, private git repository")
      UI.important("to store the certificates and profiles there")
      url = UI.input("URL of the Git Repo: ")

      template.gsub!("[[GIT_URL]]", url)
      File.write(path, template)
      UI.success("Successfully created '#{path}'. You can open the file using a code editor.")

      UI.important("You can now run `fastlane match development`, `fastlane match adhoc`, `fastlane match enterprise` and `fastlane match appstore`")
      UI.message("On the first run for each environment it will create the provisioning profiles and")
      UI.message("certificates for you. From then on, it will automatically import the existing profiles.")
      UI.message("For more information visit https://docs.fastlane.tools/actions/match/")
    end
  end
end

Version data entries

214 entries across 214 versions & 1 rubygems

Version Path
fastlane-2.113.0.beta.20190106200016 match/lib/match/setup.rb
fastlane-2.113.0.beta.20190105200036 match/lib/match/setup.rb
fastlane-2.113.0.beta.20190104200013 match/lib/match/setup.rb
fastlane-2.113.0.beta.20190103200013 match/lib/match/setup.rb
fastlane-2.113.0.beta.20190102200016 match/lib/match/setup.rb
fastlane-2.113.0.beta.20190101200013 match/lib/match/setup.rb
fastlane-2.113.0.beta.20181231200027 match/lib/match/setup.rb
fastlane-2.113.0.beta.20181230200014 match/lib/match/setup.rb
fastlane-2.113.0.beta.20181229200101 match/lib/match/setup.rb
fastlane-2.113.0.beta.20181228200027 match/lib/match/setup.rb
fastlane-2.113.0.beta.20181227200058 match/lib/match/setup.rb
fastlane-2.113.0.beta.20181226200116 match/lib/match/setup.rb
fastlane-2.113.0.beta.20181225200026 match/lib/match/setup.rb
fastlane-2.113.0.beta.20181224200038 match/lib/match/setup.rb
fastlane-2.113.0.beta.20181223200038 match/lib/match/setup.rb
fastlane-2.113.0.beta.20181222200027 match/lib/match/setup.rb
fastlane-2.113.0.beta.20181221200014 match/lib/match/setup.rb
fastlane-2.113.0.beta.20181220200101 match/lib/match/setup.rb
fastlane-2.113.0.beta.20181219200044 match/lib/match/setup.rb
fastlane-2.112.0 match/lib/match/setup.rb