inspec/examples/custom-resource/libraries/batsignal.rb
Ryan Davis a5309ea392 blindly applied chefstyle -a
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-06-11 18:52:03 -07:00

20 lines
343 B
Ruby

class Batsignal < Inspec.resource(1)
name "batsignal"
example "
describe batsignal do
its('number_of_sightings)') { should eq '4' }
end
"
def number_of_sightings
local_command_call
end
private
def local_command_call
# call out to a core resource
inspec.command("echo 4").stdout.to_i
end
end