summaryrefslogtreecommitdiff
path: root/lib/chef/provider/service.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/provider/service.rb')
-rw-r--r--lib/chef/provider/service.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/chef/provider/service.rb b/lib/chef/provider/service.rb
index 27af1ac970..fbf269dbec 100644
--- a/lib/chef/provider/service.rb
+++ b/lib/chef/provider/service.rb
@@ -163,6 +163,10 @@ class Chef
end
end
+ def custom_command_for_action?(action)
+ !!@new_resource.send("#{action}_command".to_sym) rescue false
+ end
+
end
end
end