Class: WavefrontCommandApitoken

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

Overview

Define the apitoken command.

Instance Method Summary collapse

Methods inherited from WavefrontCommandBase

#acl_commands, #commands, #common_options, #docopt, #global_option_text, #global_options, #opt_row, #option_column_width, #options, #postscript, #tag_commands, #things, #word

Instance Method Details

#_commandsObject



24
25
26
27
28
29
# File 'lib/wavefront-cli/commands/apitoken.rb', line 24

def _commands
  ["list #{CMN} [-O fields]",
   "create #{CMN}",
   "delete #{CMN} <id>",
   "rename #{CMN} <id> <name>"]
end

#_optionsObject



31
32
33
34
# File 'lib/wavefront-cli/commands/apitoken.rb', line 31

def _options
  [common_options,
   '-O, --fields=F1,F2,...  only show given fields']
end

#descriptionObject



8
9
10
# File 'lib/wavefront-cli/commands/apitoken.rb', line 8

def description
  "view and your own #{things}"
end

#sdk_classObject



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

def sdk_class
  'ApiToken'
end

#sdk_fileObject



16
17
18
# File 'lib/wavefront-cli/commands/apitoken.rb', line 16

def sdk_file
  'apitoken'
end

#thingObject



12
13
14
# File 'lib/wavefront-cli/commands/apitoken.rb', line 12

def thing
  'API token'
end