Class: OpscodeAcl::GroupShow

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

Instance Method Summary collapse

Instance Method Details

#runObject



30
31
32
33
34
35
36
37
38
39
40
41
42
43
# File 'lib/chef/knife/group_show.rb', line 30

def run
  group_name = name_args[0]

  if name_args.length != 1
    show_usage
    ui.fatal "You must specify group name"
    exit 1
  end

  validate_member_name!(group_name)

  group = rest.get_rest("groups/#{group_name}")
  ui.output group
end