Method: Inspec::InspecCLI#version

Defined in:
lib/inspec/cli.rb

#versionObject



379
380
381
382
383
384
385
386
# File 'lib/inspec/cli.rb', line 379

def version
  if config["format"] == "json"
    v = { version: Inspec::VERSION }
    puts v.to_json
  else
    puts Inspec::VERSION
  end
end