Class: Match::Setup

Inherits:
Object
  • Object
show all
Defined in:
lib/match/setup.rb

Instance Method Summary collapse

Instance Method Details

#run(path) ⇒ Object



3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/match/setup.rb', line 3

def run(path)
  template = File.read("#{Match::ROOT}/lib/assets/MatchfileTemplate")

  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 `match development`, `match adhoc` and `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