Module: ChefSpec::API::RebootMatchers

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

Overview

Since:

  • 0.5.0

Instance Method Summary collapse

Instance Method Details

#cancel_reboot(resource_name) ⇒ Object

Since:

  • 0.5.0


14
15
16
# File 'lib/chefspec/api/reboot.rb', line 14

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

#now_reboot(resource_name) ⇒ Object

Since:

  • 0.5.0


6
7
8
# File 'lib/chefspec/api/reboot.rb', line 6

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

#request_reboot(resource_name) ⇒ Object

Since:

  • 0.5.0


10
11
12
# File 'lib/chefspec/api/reboot.rb', line 10

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