Class: Pulsedive::CLI::Analyze

Inherits:
Base
  • Object
show all
Defined in:
lib/pulsedive/cli.rb

Instance Method Summary collapse

Instance Method Details

#add_to_queue(ioc) ⇒ Object



116
117
118
119
120
121
122
123
# 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) ⇒ Object



126
127
128
129
130
131
# 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