summaryrefslogtreecommitdiff
path: root/lib/chef/provider/launchd.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/provider/launchd.rb')
-rw-r--r--lib/chef/provider/launchd.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/chef/provider/launchd.rb b/lib/chef/provider/launchd.rb
index 880c5d9aa7..838ec22abd 100644
--- a/lib/chef/provider/launchd.rb
+++ b/lib/chef/provider/launchd.rb
@@ -90,6 +90,7 @@ class Chef
def manage_plist(action)
return unless manage_agent?(action)
+
if source
res = cookbook_file_resource
else
@@ -102,6 +103,7 @@ class Chef
def manage_service(action)
return unless manage_agent?(action)
+
res = service_resource
res.run_action(action)
new_resource.updated_by_last_action(true) if res.updated?
@@ -179,6 +181,7 @@ class Chef
def gen_hash
return nil unless new_resource.program || new_resource.program_arguments
+
{
"label" => "Label",
"program" => "Program",