Class: OpscodeAcl::GroupList
- Inherits:
-
Chef::Knife
- Object
- Chef::Knife
- OpscodeAcl::GroupList
- Defined in:
- lib/chef/knife/group_list.rb
Instance Method Summary collapse
Instance Method Details
#remove_usags(groups) ⇒ Object
35 36 37 |
# File 'lib/chef/knife/group_list.rb', line 35 def remove_usags(groups) groups.select { |gname| !is_usag?(gname) } end |
#run ⇒ Object
30 31 32 33 |
# File 'lib/chef/knife/group_list.rb', line 30 def run groups = rest.get_rest("groups").keys.sort ui.output(remove_usags(groups)) end |