Class: Sumologic::CLI::Commands::ListCollectorsCommand

Inherits:
BaseCommand
  • Object
show all
Defined in:
lib/sumologic/cli/commands/list_collectors_command.rb

Overview

Handles the list-collectors command execution

Instance Attribute Summary

Attributes inherited from BaseCommand

#client, #options

Instance Method Summary collapse

Methods inherited from BaseCommand

#initialize

Constructor Details

This class inherits a constructor from Sumologic::CLI::Commands::BaseCommand

Instance Method Details

#executeObject



10
11
12
13
14
15
16
17
# File 'lib/sumologic/cli/commands/list_collectors_command.rb', line 10

def execute
  list_resource(label: 'collectors', key: :collectors) do
    client.list_collectors(
      query: options[:query],
      limit: options[:limit]
    )
  end
end