Class: WavefrontCommandSettings

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

Overview

Define the settings command.

Instance Method Summary collapse

Methods inherited from WavefrontCommandBase

#acl_commands, #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
# File 'lib/wavefront-cli/commands/settings.rb', line 10

def _commands
  ["list permissions #{CMN} [-l] [-O fields]",
   "show preferences #{CMN} [-l] [-O fields]",
   "update #{CMN} <key=value>...",
   "default usergroups #{CMN} [-l] [-O fields]"]
end

#_optionsObject



17
18
19
20
21
# File 'lib/wavefront-cli/commands/settings.rb', line 17

def _options
  [common_options,
   '-l, --long              list derived metrics in detail',
   '-O, --fields=F1,F2,...  only show given fields']
end

#descriptionObject



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

def description
  'view and manage system preferences'
end