diff options
author | KAWAHARA Masashi <anthrax@unixuser.org> | 2013-09-30 18:49:33 +0900 |
---|---|---|
committer | Bryan McLellan <btm@opscode.com> | 2013-10-10 11:29:23 -0700 |
commit | 9529dbcd3c8e4fca4fcc6ef4e5653eb05ffa1524 (patch) | |
tree | 38eaaa9fb7fbfd51735393c8e034e15c201dc2de /lib/chef/resource/group.rb | |
parent | 548394ea1f5f0937b69663d6a9301b01bc08f728 (diff) | |
download | chef-9529dbcd3c8e4fca4fcc6ef4e5653eb05ffa1524.tar.gz |
[CHEF-4578] add supports "non_unique" to groupadd
Diffstat (limited to 'lib/chef/resource/group.rb')
-rw-r--r-- | lib/chef/resource/group.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/chef/resource/group.rb b/lib/chef/resource/group.rb index fd09ecb052..97c9d489d3 100644 --- a/lib/chef/resource/group.rb +++ b/lib/chef/resource/group.rb @@ -33,6 +33,10 @@ class Chef @members = [] @action = :create @append = false + @non_unique = false + @supports = { + :non_unique => false + } @allowed_actions.push(:create, :remove, :modify, :manage) end @@ -78,6 +82,14 @@ class Chef :kind_of => [ TrueClass, FalseClass ] ) end + + def non_unique(arg=nil) + set_or_return( + :non_unique, + arg, + :kind_of => [ TrueClass, FalseClass ] + ) + end end end end |