summaryrefslogtreecommitdiff
path: root/lib/chef/resource/launchd.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/resource/launchd.rb')
-rw-r--r--lib/chef/resource/launchd.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/chef/resource/launchd.rb b/lib/chef/resource/launchd.rb
index 3fba76e220..3a85fed14f 100644
--- a/lib/chef/resource/launchd.rb
+++ b/lib/chef/resource/launchd.rb
@@ -17,19 +17,17 @@
#
require "chef/resource"
-require "chef/provider/launchd"
class Chef
class Resource
class Launchd < Chef::Resource
+ resource_name :launchd
provides :launchd, os: "darwin"
- identity_attr :label
-
default_action :create
allowed_actions :create, :create_if_missing, :delete, :enable, :disable, :restart
- property :label, String, default: lazy { name }, identity: true
+ property :label, String, identity: true, name_property: true
property :backup, [Integer, FalseClass]
property :cookbook, String
property :group, [String, Integer]