Sha256: 3d2a5cd685393dff69e5c3e1ec53e67e7131ce6f12d80060ecc26c8a96ab35d8

Contents?: true

Size: 1.09 KB

Versions: 3

Compression:

Stored size: 1.09 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

3 entries across 3 versions & 1 rubygems

Version Path
fastlane-2.74.1 match/lib/match/setup.rb
fastlane-2.74.0 match/lib/match/setup.rb
fastlane-2.74.0.beta.20180108010004 match/lib/match/setup.rb