summaryrefslogtreecommitdiff
path: root/lib/chef/resource/macosx_service.rb
diff options
context:
space:
mode:
authorMike Dodge <mikedodge04@fb.com>2015-03-25 00:10:04 -0700
committerMike Dodge <mikedodge04@fb.com>2015-03-25 00:10:04 -0700
commit5b8fcf1e8285643e797090de505f33d5aab2a89f (patch)
tree8cc285ec28a664f51e45412849ecd15341858995 /lib/chef/resource/macosx_service.rb
parent6ef7ea3b49ff5f3166be5dcbd718076993a781ea (diff)
downloadchef-5b8fcf1e8285643e797090de505f33d5aab2a89f.tar.gz
addressed each of the comments
Diffstat (limited to 'lib/chef/resource/macosx_service.rb')
-rw-r--r--lib/chef/resource/macosx_service.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/chef/resource/macosx_service.rb b/lib/chef/resource/macosx_service.rb
index 7b040f2c01..be58dc6676 100644
--- a/lib/chef/resource/macosx_service.rb
+++ b/lib/chef/resource/macosx_service.rb
@@ -1,6 +1,6 @@
#
# Author:: Mike Dodge (<mikedodge04@gmail.com>)
-# Copyright:: Copyright (c) 2009 Opscode, Inc.
+# Copyright:: Copyright (c) 2015 Facebook, Inc.
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -39,6 +39,7 @@ class Chef
# This will enable user to pass a plist in the case
# that the filename and label for the service dont match
def plist(arg=nil)
+ assert_path_exists(arg) unless arg.nil?
set_or_return(
:plist,
arg,