summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryan McLellan <btm@loftninjas.org>2014-08-11 16:07:40 -0400
committerBryan McLellan <btm@loftninjas.org>2014-08-12 16:51:13 -0400
commit2952ea0750b21821611e8cce8b2eb3d9bc86fa82 (patch)
treefc7768446ac3c5d2639a64e6a1a4a2514695a408
parentb7f83596f2ac47c4d41743900ad83db4153ea43c (diff)
downloadchef-2952ea0750b21821611e8cce8b2eb3d9bc86fa82.tar.gz
CHEF-5022: Don't use provides in the resource
Wait until #1773 is fixed to use provides in the resource. This means you need to specify windows_service in your recipes if you want to use the :configure_startup action and the startup_type attribute.
-rw-r--r--lib/chef/resource/windows_service.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/chef/resource/windows_service.rb b/lib/chef/resource/windows_service.rb
index 42b256c4a7..1a70603f28 100644
--- a/lib/chef/resource/windows_service.rb
+++ b/lib/chef/resource/windows_service.rb
@@ -22,7 +22,10 @@ class Chef
class Resource
class WindowsService < Chef::Resource::Service
- provides :service, :on_platforms => ["windows"]
+ # Until #1773 is resolved, you need to manually specify the windows_service resource
+ # to use action :configure_startup and attribute startup_type
+
+ # provides :service, :on_platforms => ["windows"]
identity_attr :service_name