diff options
author | sersut <serdar@opscode.com> | 2013-11-11 11:28:38 -0800 |
---|---|---|
committer | sersut <serdar@opscode.com> | 2013-11-11 11:28:38 -0800 |
commit | c062ed00c21a46ea3733b112ca79d6b86446eb7f (patch) | |
tree | 29b53d742074d2605a628aea7687246aed247f48 /lib/chef/resource/group.rb | |
parent | 1db8f468a15632eb129b30367babd001ee2d0ace (diff) | |
download | chef-c062ed00c21a46ea3733b112ca79d6b86446eb7f.tar.gz |
New property :excluded_members for group resource and required common code around it.
Diffstat (limited to 'lib/chef/resource/group.rb')
-rw-r--r-- | lib/chef/resource/group.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/chef/resource/group.rb b/lib/chef/resource/group.rb index 17f14c8387..707def9e39 100644 --- a/lib/chef/resource/group.rb +++ b/lib/chef/resource/group.rb @@ -64,6 +64,16 @@ class Chef alias_method :users, :members + def excluded_members(arg=nil) + converted_members = arg.is_a?(String) ? [].push(arg) : arg + set_or_return( + :excluded_members, + converted_members, + :kind_of => [ Array ] + ) + end + + def append(arg=nil) set_or_return( :append, |