mirror of
https://github.com/inspec/inspec
synced 2024-11-15 17:28:02 +00:00
086d385fe0
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
15 lines
280 B
Ruby
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
|
|
|