summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad <bradarv90@gmail.com>2018-02-22 22:43:38 -0500
committerTim Smith <tsmith@chef.io>2018-03-05 14:20:11 -0800
commitcb177a7c7b160dbb7d485aca00bddb62f253b5b0 (patch)
tree857a75109f12ea980693daf1338f3f8837e91fe7
parent5a4031299e9d74bfb500522801fa2fc8d0ffc8e1 (diff)
downloadchef-cb177a7c7b160dbb7d485aca00bddb62f253b5b0.tar.gz
better docs for Chef::Provider::Service::Upstart.supports?
Signed-off-by: Brad <bradarv90@gmail.com>
-rw-r--r--lib/chef/provider/service/upstart.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/chef/provider/service/upstart.rb b/lib/chef/provider/service/upstart.rb
index 9783b3b3a5..26fc112ed8 100644
--- a/lib/chef/provider/service/upstart.rb
+++ b/lib/chef/provider/service/upstart.rb
@@ -34,6 +34,7 @@ class Chef
UPSTART_STATE_FORMAT = /\S+ \(?(start|stop)?\)? ?[\/ ](\w+)/
+ # Returns true if the configs for the service name has upstart variable
def self.supports?(resource, action)
Chef::Platform::ServiceHelpers.config_for_service(resource.service_name).include?(:upstart)
end