Class: WavefrontCommandUser

Inherits:
WavefrontCommandBase show all
Defined in:
lib/wavefront-cli/commands/user.rb

Overview

Define the user command.

Instance Method Summary collapse

Methods inherited from WavefrontCommandBase

#commands, #common_options, #docopt, #global_options, #opt_row, #option_column_width, #options, #postscript, #sdk_class, #sdk_file, #tag_commands, #word

Instance Method Details

#_commandsObject



10
11
12
13
14
15
16
17
# File 'lib/wavefront-cli/commands/user.rb', line 10

def _commands
  ["list #{CMN} [-l]",
   "describe #{CMN} [-f format] <id>",
   "delete #{CMN} <id>",
   "import #{CMN} <file>",
   "grant #{CMN} <privilege> to <id>",
   "revoke #{CMN} <privilege> from <id>"]
end

#_optionsObject



19
20
21
22
23
# File 'lib/wavefront-cli/commands/user.rb', line 19

def _options
  [common_options,
   '-l, --long                list users in detail',
   '-f, --format=STRING       output format']
end

#descriptionObject



6
7
8
# File 'lib/wavefront-cli/commands/user.rb', line 6

def description
  'view and manage Wavefront users'
end