diff options
author | Tim Smith <tsmith@chef.io> | 2017-12-15 14:13:45 -0800 |
---|---|---|
committer | Tim Smith <tsmith@chef.io> | 2017-12-15 14:13:45 -0800 |
commit | f353c75b99f084a9d2075ffd0877fd61605048fd (patch) | |
tree | f7621f44d244bbf2cc1e21ec964b529a1f3369de | |
parent | a515056c3226b3524dfee21cbcef69cfd30582e3 (diff) | |
download | chef-resource_fixes.tar.gz |
Remove set_or_returns in macosx_serviceresource_fixes
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r-- | lib/chef/resource/macosx_service.rb | 22 |
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 |