Class: OpscodeAcl::AclShow
- Inherits:
-
Chef::Knife
- Object
- Chef::Knife
- OpscodeAcl::AclShow
- Defined in:
- lib/chef/knife/acl_show.rb
Instance Method Summary collapse
Instance Method Details
#run ⇒ Object
28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/chef/knife/acl_show.rb', line 28 def run object_type, object_name = name_args if ! object_name || ! object_type show_usage ui.fatal "You must specify an object type and object name" exit 1 end validate_object_type!(object_type) validate_object_name!(object_name) acl = get_acl(object_type, object_name) ui.output acl end |