-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.prospectus
55 lines (43 loc) · 1.12 KB
/
.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
48
49
50
51
52
53
54
55
Prospectus.extra_dep('file', 'prospectus_travis')
Prospectus.extra_dep('file', 'prospectus_gems')
item do
noop
deps do
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 repo_name
expected do
github_hash
repo repo_name
end
actual do
git_hash
dir path
end
end
end
lines = File.readlines('Puppetfile').select { |x| x.match(/^hmod /) }
modules = lines.map { |x| x.split("'").values_at(1, 3) }
modules.each do |name, version|
repo_name = "halyard/puppet-#{name}"
item do
name "#{name}"
expected do
github_tag
repo repo_name
regex /^([\d.]+)$/
filter /^([\d.]+)$/
end
actual do
static
set version
end
end
end
end
extend ProspectusTravis::Build.new('halyard/goblin')
extend ProspectusGems::Gemspec.new
end