90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
|
# File 'lib/chef/provider/service/arch.rb', line 90
def disable_service()
new_daemons = []
entries = daemons
if entries.include?("!#{new_resource.service_name}")
else
if entries.include?(new_resource.service_name) or entries.include?("@#{new_resource.service_name}")
entries.each do |daemon|
if [new_resource.service_name, "@#{new_resource.service_name}"].include?(daemon)
new_daemons << "!#{new_resource.service_name}"
else
new_daemons << daemon
end
end
end
update_daemons(new_daemons)
end
end
|