Skip to content
This repository was archived by the owner on Oct 15, 2019. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions providers/service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,14 @@
#

action :enable do
converge_by("Enabling #{ new_resource }") do
enable_service
end
enable_service
end

action :disable do
if current_resource.state == 'UNAVAILABLE'
Chef::Log.info "#{new_resource} is already disabled."
else
converge_by("Disabling #{new_resource}") do
disable_service
end
disable_service
end
end

Expand Down