inspec/lib/utils/detect.rb
Dominik Richter 086d385fe0 add detect utility to get os info
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
2015-08-13 17:18:17 -07:00

15 lines
280 B
Ruby

# encoding: utf-8
#
# Copyright 2015, Vulcano Security GmbH
#
# Tiny test file to return OS info of the tested node
require 'json'
# hijack os-detection from serverspec
puts JSON.dump({
os_family: os[:family],
os_release: os[:release],
os_arch: os[:arch]
})
exit 0