Class: WavefrontCommandRole
- Inherits:
-
WavefrontCommandBase
- Object
- WavefrontCommandBase
- WavefrontCommandRole
- Defined in:
- lib/wavefront-cli/commands/role.rb
Overview
Define the ‘role’ command.
Instance Method Summary collapse
Methods inherited from WavefrontCommandBase
#acl_commands, #commands, #common_options, #description, #docopt, #global_option_text, #global_options, #opt_row, #option_column_width, #options, #sdk_class, #sdk_file, #tag_commands, #thing, #things, #word
Instance Method Details
#_commands ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/wavefront-cli/commands/role.rb', line 8 def _commands ["list #{CMN} [-al] [-O fields] [-o offset] [-L limit]", "describe #{CMN} <id>", "create #{CMN} [-d description] [-p permission...] <name>", "delete #{CMN} <id>", "dump #{CMN}", "import #{CMN} [-uU] <file>", "set #{CMN} <key=value> <id>", "accounts #{CMN} <id>", "groups #{CMN} <id>", "permissions #{CMN} <id>", "give #{CMN} <id> to <member>...", "take #{CMN} <id> from <member>...", "grant #{CMN} <permission> to <id>", "revoke #{CMN} <permission> from <id>", "search #{CMN} [-al] [-o offset] [-L limit] [-O fields] <condition>..."] end |
#_options ⇒ Object
26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/wavefront-cli/commands/role.rb', line 26 def [, "-l, --long list #{things} in detail", "-a, --all list all #{things}", "-o, --offset=n start from nth #{thing}", "-L, --limit=COUNT number of #{things} to list", '-O, --fields=F1,F2,... only show given fields', "-u, --update update an existing #{thing}", "-U, --upsert import new or update existing #{thing}", "-d, --description=STRING description of #{thing}", '-p, --permission=STRING Wavefront permission'] end |
#postscript ⇒ Object
39 40 41 42 43 |
# File 'lib/wavefront-cli/commands/role.rb', line 39 def postscript "A role 'member' can be an account ID or a usergroup ID. 'wf settings " \ "list permissions' will give you a list of all currently supported " \ 'permissions.'.fold(TW, 0) end |