Skip to content

Commit 4248f09

Browse files
dafyddcrosbyfacebook-github-bot
authored andcommitted
use per-line depends
Summary: Simple refactor to remove loop and alphabetize list, no functional changes Differential Revision: D66830283 fbshipit-source-id: 10b7effb162e8a26b9dd062ace491488082f9fe4
1 parent 53432dc commit 4248f09

File tree

1 file changed

+59
-63
lines changed

1 file changed

+59
-63
lines changed

cookbooks/fb_init_sample/metadata.rb

Lines changed: 59 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -13,66 +13,62 @@
1313
}.each do |p|
1414
supports p
1515
end
16-
[
17-
'fb_apt',
18-
'fb_apcupsd',
19-
'fb_chrony',
20-
'fb_collectd',
21-
'fb_cron',
22-
'fb_dnsmasq',
23-
'fb_dracut',
24-
'fb_e2fsprogs',
25-
'fb_ebtables',
26-
'fb_ethers',
27-
'fb_ethtool',
28-
'fb_fstab',
29-
'fb_grub',
30-
'fb_grubby',
31-
'fb_hdparm',
32-
'fb_hddtemp',
33-
'fb_helpers',
34-
'fb_hostconf',
35-
'fb_hostname',
36-
'fb_hosts',
37-
# no recipe, but we want the provider included
38-
# for the tests
39-
'fb_ipc',
40-
'fb_ipset',
41-
'fb_iptables',
42-
'fb_iproute',
43-
'fb_launchd',
44-
'fb_ldconfig',
45-
'fb_less',
46-
'fb_limits',
47-
'fb_logrotate',
48-
'fb_mlocate',
49-
'fb_modprobe',
50-
'fb_motd',
51-
'fb_nscd',
52-
'fb_nsswitch',
53-
'fb_postfix',
54-
'fb_profile',
55-
'fb_rpm',
56-
'fb_rsync',
57-
'fb_screen',
58-
'fb_sdparm',
59-
'fb_securetty',
60-
'fb_smartmon',
61-
'fb_storage',
62-
'fb_stunnel',
63-
'fb_sudo',
64-
'fb_swap',
65-
'fb_sysctl',
66-
# no recipe, but we want the provider included
67-
# for the tests
68-
'fb_sysfs',
69-
'fb_syslog',
70-
'fb_sysstat',
71-
'fb_systemd',
72-
'fb_timers',
73-
'fb_tmpclean',
74-
'fb_util_linux',
75-
'fb_users',
76-
].each do |cb|
77-
depends cb
78-
end
16+
depends 'fb_apcupsd'
17+
depends 'fb_apt'
18+
depends 'fb_chrony'
19+
depends 'fb_collectd'
20+
depends 'fb_cron'
21+
depends 'fb_dnsmasq'
22+
depends 'fb_dracut'
23+
depends 'fb_e2fsprogs'
24+
depends 'fb_ebtables'
25+
depends 'fb_ethers'
26+
depends 'fb_ethtool'
27+
depends 'fb_fstab'
28+
depends 'fb_grub'
29+
depends 'fb_grubby'
30+
depends 'fb_hddtemp'
31+
depends 'fb_hdparm'
32+
depends 'fb_helpers'
33+
depends 'fb_hostconf'
34+
depends 'fb_hostname'
35+
depends 'fb_hosts'
36+
# no recipe but we want the provider included
37+
# for the tests
38+
depends 'fb_ipc'
39+
depends 'fb_iproute'
40+
depends 'fb_ipset'
41+
depends 'fb_iptables'
42+
depends 'fb_launchd'
43+
depends 'fb_ldconfig'
44+
depends 'fb_less'
45+
depends 'fb_limits'
46+
depends 'fb_logrotate'
47+
depends 'fb_mlocate'
48+
depends 'fb_modprobe'
49+
depends 'fb_motd'
50+
depends 'fb_nscd'
51+
depends 'fb_nsswitch'
52+
depends 'fb_postfix'
53+
depends 'fb_profile'
54+
depends 'fb_rpm'
55+
depends 'fb_rsync'
56+
depends 'fb_screen'
57+
depends 'fb_sdparm'
58+
depends 'fb_securetty'
59+
depends 'fb_smartmon'
60+
depends 'fb_storage'
61+
depends 'fb_stunnel'
62+
depends 'fb_sudo'
63+
depends 'fb_swap'
64+
depends 'fb_sysctl'
65+
# no recipe but we want the provider included
66+
# for the tests
67+
depends 'fb_sysfs'
68+
depends 'fb_syslog'
69+
depends 'fb_sysstat'
70+
depends 'fb_systemd'
71+
depends 'fb_timers'
72+
depends 'fb_tmpclean'
73+
depends 'fb_users'
74+
depends 'fb_util_linux'

0 commit comments

Comments
 (0)