Sha256: ca91b12ed879a690d54f6085e6fd91531c9b02fcc3fd8f78766137eb06829fb4

Contents?: true

Size: 1.08 KB

Versions: 36

Compression:

Stored size: 1.08 KB

Contents

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://github.com/fastlane/fastlane/tree/master/match"
    end
  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
fastlane-2.74.0.beta.20180106010004 match/lib/match/setup.rb
fastlane-2.73.0 match/lib/match/setup.rb
fastlane-2.73.0.beta.20180105010003 match/lib/match/setup.rb
fastlane-2.73.0.beta.20180104010004 match/lib/match/setup.rb
fastlane-2.73.0.beta.20180103010003 match/lib/match/setup.rb
fastlane-2.72.0 match/lib/match/setup.rb
fastlane-2.72.0.beta.20180102010003 match/lib/match/setup.rb
fastlane-2.72.0.beta.20180101010003 match/lib/match/setup.rb
fastlane-2.72.0.beta.20171231010003 match/lib/match/setup.rb
fastlane-2.71.1 match/lib/match/setup.rb
fastlane-2.72.0.beta.20171230010003 match/lib/match/setup.rb
fastlane-2.72.0.beta.20171229010003 match/lib/match/setup.rb
fastlane-2.72.0.beta.20171228010004 match/lib/match/setup.rb
fastlane-2.71.0 match/lib/match/setup.rb
fastlane-2.71.0.beta.20171227010004 match/lib/match/setup.rb
fastlane-2.71.0.beta.20171226010004 match/lib/match/setup.rb
fastlane-2.71.0.beta.20171225010003 match/lib/match/setup.rb
fastlane-2.71.0.beta.20171224010003 match/lib/match/setup.rb
fastlane-2.71.0.beta.20171223010003 match/lib/match/setup.rb
fastlane-2.71.0.beta.20171222010003 match/lib/match/setup.rb