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, #description, #docopt, #global_option_text, #global_options, #opt_row, #option_column_width, #options, #postscript, #sdk_class, #sdk_file, #tag_commands, #things, #word

Instance Method Details

#_commandsObject



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

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

#_optionsObject



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

def _options
  [common_options,
   "-l, --long              list #{things} in detail",
   '-O, --fields=F1,F2,...  only show given fields']
end

#thingObject



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

def thing
  'system preference'
end