Class: WavefrontCommandApitoken
Overview
Define the apitoken command.
Instance Method Summary
collapse
#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
#_commands ⇒ Object
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
|
#_options ⇒ Object
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
|
#description ⇒ Object
8
9
10
|
# File 'lib/wavefront-cli/commands/apitoken.rb', line 8
def description
"view and your own #{things}"
end
|
#sdk_class ⇒ Object
20
21
22
|
# File 'lib/wavefront-cli/commands/apitoken.rb', line 20
def sdk_class
'ApiToken'
end
|
#sdk_file ⇒ Object
16
17
18
|
# File 'lib/wavefront-cli/commands/apitoken.rb', line 16
def sdk_file
'apitoken'
end
|
#thing ⇒ Object
12
13
14
|
# File 'lib/wavefront-cli/commands/apitoken.rb', line 12
def thing
'API token'
end
|