class WavefrontCommandProxy

Define the proxy command.

Public Instance Methods

_commands() click to toggle source
# File lib/wavefront-cli/commands/proxy.rb, line 12
def _commands
  ["list #{CMN} [-laA] [-O fields] [-o offset] [-L limit]",
   "describe #{CMN} <id>",
   "delete #{CMN} <id>",
   "undelete #{CMN} <id>",
   "rename #{CMN} <id> <name>",
   "search #{CMN} [-al] [-o offset] [-L limit] [-O fields] <condition>...",
   "shutdown #{CMN} <id>",
   "versions #{CMN}"]
end
_options() click to toggle source
# File lib/wavefront-cli/commands/proxy.rb, line 23
def _options
  [common_options,
   "-l, --long                list #{things} in detail",
   "-a, --all                 list all #{things}",
   "-A, --active              only show active #{things}",
   "-o, --offset=n            start from nth #{thing}",
   '-O, --fields=F1,F2,...    only show given fields',
   "-L, --limit=COUNT         number of #{things} to list"]
end
things() click to toggle source
# File lib/wavefront-cli/commands/proxy.rb, line 8
def things
  'proxies'
end