File tree 1 file changed +3
-12
lines changed
test/integration/passenger/controls
1 file changed +3
-12
lines changed Original file line number Diff line number Diff line change 5
5
repo_file = '/etc/yum.repos.d/passenger.repo'
6
6
repo_url = 'https://oss-binaries.phusionpassenger.com/yum/passenger/el/$releasever/$basearch'
7
7
when 'debian'
8
- # Inspec does not provide a `codename` matcher, so we add ours
9
- finger_codename = {
10
- 'ubuntu-18.04' => 'bionic' ,
11
- 'ubuntu-20.04' => 'focal' ,
12
- 'debian-9' => 'stretch' ,
13
- 'debian-10' => 'buster' ,
14
- 'debian-11' => 'bullseye'
15
- }
16
- codename = finger_codename [ system . platform [ :finger ] ]
17
-
8
+ codename = system . platform [ :codename ]
18
9
repo_keyring = '/usr/share/keyrings/phusionpassenger-archive-keyring.gpg'
19
10
repo_file = "/etc/apt/sources.list.d/phusionpassenger-official-#{ codename } .list"
20
- # rubocop:disable Metrics /LineLength
11
+ # rubocop:disable Layout /LineLength
21
12
repo_url = "deb [signed-by=#{ repo_keyring } ] https://oss-binaries.phusionpassenger.com/apt/passenger #{ codename } main"
22
- # rubocop:enable Metrics /LineLength
13
+ # rubocop:enable Layout /LineLength
23
14
end
24
15
25
16
control 'Phusion-passenger repository keyring' do
You can’t perform that action at this time.
0 commit comments