class Pulsedive::CLI::Analyze

Public Instance Methods

add_to_queue(ioc) click to toggle source
# File lib/pulsedive/cli.rb, line 116
def add_to_queue(ioc)
  enrich = options[:enrich] || 1
  probe = options[:probe] || 1
  with_error_handling do
    json = api.analyze.add_to_queue(ioc, enrich: enrich, probe: probe)
    puts JSON.pretty_generate(json)
  end
end
get_results_by_id(id) click to toggle source
# File lib/pulsedive/cli.rb, line 126
def get_results_by_id(id)
  with_error_handling do
    json = api.analyze.get_results_by_id(id)
    puts JSON.pretty_generate(json)
  end
end