Class: Apullo::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/apullo/cli.rb

Instance Method Summary collapse

Instance Method Details

#check(target) ⇒ Object



11
12
13
14
15
16
17
18
19
20
# File 'lib/apullo/cli.rb', line 11

def check(target)
  target = Target.new(target)
  headers = options["headers"]

  results = build_results(target, headers: headers)
  meta = { target: target.id }
  results = results.merge(meta: meta)

  puts JSON.pretty_generate(results)
end