Module: ChefSpec::API::Reboot

Defined in:
lib/chefspec/api/reboot.rb

Instance Method Summary collapse

Instance Method Details

#now_reboot(resource_name) ⇒ Object


4
5
6
# File 'lib/chefspec/api/reboot.rb', line 4

def now_reboot(resource_name)
  ChefSpec::Matchers::ResourceMatcher.new(:reboot, :reboot_now, resource_name)
end

#request_reboot(resource_name) ⇒ Object


8
9
10
# File 'lib/chefspec/api/reboot.rb', line 8

def request_reboot(resource_name)
  ChefSpec::Matchers::ResourceMatcher.new(:reboot, :request_reboot, resource_name)
end