-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
executable file
·43 lines (37 loc) · 863 Bytes
/
Rakefile
File metadata and controls
executable file
·43 lines (37 loc) · 863 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/usr/bin/rake
require 'yaml'
require 'json'
require 'net/http'
require 'uri'
require 'plist'
require 'English'
namespace :repos do
REPOS = %i[StencilSwiftKit SwiftGen].freeze
desc 'Bootstrap this repository for development'
task :bootstrap do
REPOS.each do |repository|
next if Dir.exist? repository.to_s
sh "git clone git@github.com:SwiftGen/#{repository}.git --recursive"
end
end
def each_repo
REPOS.each do |repo|
Dir.chdir(repo.to_s) do
Utils.print_header "=== #{repo} ==="
yield
end
end
end
desc 'Print status of each repo'
task :status do
each_repo { puts `git status` }
end
desc 'git pull each repo'
task :pull do
each_repo { puts `git pull` }
end
desc 'git checkout master each repo'
task :master do
each_repo { puts `git checkout master` }
end
end