Class: OpscodeAcl::GroupList

Inherits:
Chef::Knife
  • Object
show all
Defined in:
lib/chef/knife/group_list.rb

Instance Method Summary collapse

Instance Method Details

#remove_usags(groups) ⇒ Object



34
35
36
# File 'lib/chef/knife/group_list.rb', line 34

def remove_usags(groups)
  groups.select { |gname| !is_usag?(gname) }
end

#runObject



29
30
31
32
# File 'lib/chef/knife/group_list.rb', line 29

def run
  groups = rest.get_rest("groups").keys.sort
  ui.output(remove_usags(groups))
end