Class: WavefrontCommandWebhook

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

Overview

Define the webhook command.

Instance Method Summary collapse

Methods inherited from WavefrontCommandBase

#column_widths, #commands, #common_options, #docopt, #global_options, #opt_row, #options, #postscript, #sdk_class, #sdk_file, #tag_commands, #word

Instance Method Details

#_commandsObject



10
11
12
13
14
15
16
# File 'lib/wavefront-cli/commands/webhook.rb', line 10

def _commands
  ["list #{CMN} [-l] [-f format] [-o offset] [-L limit]",
   "describe #{CMN} [-f format] <id>",
   "delete #{CMN} <id>",
   "import #{CMN} <file>",
   "update #{CMN} <key=value> <id>"]
end

#_optionsObject



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

def _options
  [common_options,
   '-l, --long                list webhooks in detail',
   '-o, --offset=n            start list from nth webhook',
   '-L, --limit=COUNT         number of webhooks to list',
   '-f, --format=STRING       output format']
end

#descriptionObject



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

def description
  'view and manage webhooks'
end