diff options
Diffstat (limited to 'lib/chef/provider/service.rb')
-rw-r--r-- | lib/chef/provider/service.rb | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/lib/chef/provider/service.rb b/lib/chef/provider/service.rb index 42dfb1598a..d716e44342 100644 --- a/lib/chef/provider/service.rb +++ b/lib/chef/provider/service.rb @@ -56,9 +56,6 @@ class Chef if @new_resource.running.nil? @new_resource.running(@current_resource.running) end - if ( @new_resource.masked.nil? ) - @new_resource.masked(@current_resource.masked) - end end def shared_resource_requirements @@ -100,32 +97,6 @@ class Chef @new_resource.enabled(false) end - def action_mask - if @current_resource.masked - Chef::Log.debug("#{@new_resource} already masked - nothing to do") - else - converge_by("mask service #{@new_resource}") do - mask_service - Chef::Log.info("#{@new_resource} masked") - end - end - load_new_resource_state - @new_resource.masked(true) - end - - def action_unmask - if @current_resource.masked - converge_by("unmask service #{@new_resource}") do - unmask_service - Chef::Log.info("#{@new_resource} masked") - end - else - Chef::Log.debug("#{@new_resource} already unmasked - nothing to do") - end - load_new_resource_state - @new_resource.masked(false) - end - def action_start unless @current_resource.running converge_by("start service #{@new_resource}") do @@ -195,14 +166,6 @@ class Chef raise Chef::Exceptions::UnsupportedAction, "#{self} does not support :reload" end - def mask_service - raise Chef::Exceptions::UnsupportedAction, "#{self.to_s} does not support :mask" - end - - def unmask_service - raise Chef::Exceptions::UnsupportedAction, "#{self.to_s} does not support :unmask" - end - protected def default_init_command |