forked from armorfret-archived/terraform-linode-wireguard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.prospectus
47 lines (37 loc) · 925 Bytes
/
.prospectus
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
44
45
46
47
Prospectus.extra_dep('file', 'prospectus_travis')
item do
noop
extend ProspectusTravis::Build.new('armorfret/terraform-linode-wireguard')
deps do
item do
name 'terraform'
expected do
github_release
repo 'hashicorp/terraform'
regex /^v?([\d.]+)$/
filter /^v?([\d.]+)$/
end
actual do
grep
file '.travis.yml'
regex /^\s+- TERRAFORM_VERSION=([\d.]+)$/
end
end
raw = File.read('.gitmodules').split(/^\[.*\]$/).reject(&:empty?)
submodules = raw.map { |x| x.split("\n")[1, 2].map { |y| y.split(' ').last } }
submodules.each do |path, repo|
repo_name = repo.split('.com/').last
item do
name "dotfiles::#{repo_name}"
expected do
github_hash
repo repo_name
end
actual do
git_hash
dir path
end
end
end
end
end