Class: Sumologic::CLI::Commands::GetLookupCommand

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

Overview

Handles the get-lookup 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
# File 'lib/sumologic/cli/commands/get_lookup_command.rb', line 10

def execute
  get_resource(label: 'lookup table', id: options[:lookup_id]) do
    client.get_lookup(lookup_id: options[:lookup_id])
  end
end