Class: OpscodeAcl::GroupCreate
- Inherits:
-
Chef::Knife
- Object
- Chef::Knife
- OpscodeAcl::GroupCreate
- Defined in:
- lib/chef/knife/group_create.rb
Instance Method Summary collapse
Instance Method Details
#run ⇒ Object
28 29 30 31 32 33 34 35 36 |
# File 'lib/chef/knife/group_create.rb', line 28 def run group_name = name_args[0] if !group_name || group_name.empty? ui.error "must specify a group name" exit 1 end group = rest.post_rest("groups", {:groupname => group_name}) ui.output group end |