mirror of
https://github.com/inspec/inspec
synced 2024-12-22 19:13:24 +00:00
d48bb56087
Signed-off-by: Miah Johnson <miah@chia-pet.org>
20 lines
343 B
Ruby
20 lines
343 B
Ruby
class Batsignal < Inspec.resource(1)
|
|
name 'batsignal'
|
|
|
|
example "
|
|
describe batsignal do
|
|
its('number_of_sightings)') { should eq '1' }
|
|
end
|
|
"
|
|
|
|
def number_of_sightings
|
|
local_command_call
|
|
end
|
|
|
|
private
|
|
|
|
def local_command_call
|
|
# call out to a core resource
|
|
inspec.command('echo 1').stdout.to_i
|
|
end
|
|
end
|