lib/conjur/command/roles.rb in conjur-cli-2.1.1 vs lib/conjur/command/roles.rb in conjur-cli-2.1.2
- old
+ new
@@ -34,12 +34,11 @@
display api.role(role).all.map(&:id)
end
end
desc "Grant a role to another role. You must have admin permission on the granting role."
- arg_name "role"
- arg_name "member"
+ arg_name "role member"
command :grant_to do |c|
c.desc "Whether to grant with admin option"
c.switch :admin
c.action do |global_options,options,args|
@@ -49,11 +48,10 @@
role.grant_to member, options[:admin]
end
end
desc "Revoke a role from another role."
- arg_name "role"
- arg_name "member"
+ arg_name "role member"
command :revoke_from do |c|
c.action do |global_options,options,args|
id = require_arg(args, 'role')
member = require_arg(args, 'member')
role = api.role(id)