summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/chef/resource/macosx_service.rb22
1 files changed, 2 insertions, 20 deletions
diff --git a/lib/chef/resource/macosx_service.rb b/lib/chef/resource/macosx_service.rb
index 9d35a7e315..a12add2109 100644
--- a/lib/chef/resource/macosx_service.rb
+++ b/lib/chef/resource/macosx_service.rb
@@ -29,29 +29,11 @@ class Chef
state_attrs :enabled, :running
- def initialize(name, run_context = nil)
- super
- @plist = nil
- @session_type = nil
- end
-
# 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)
- set_or_return(
- :plist,
- arg,
- :kind_of => String
- )
- end
+ property :plist, String
- def session_type(arg = nil)
- set_or_return(
- :session_type,
- arg,
- :kind_of => String
- )
- end
+ property :session_type, String
end
end