Module: ChefSpec::API::DeployMatchers
- Defined in:
- lib/chefspec/api/deploy.rb
Overview
Instance Method Summary collapse
-
#deploy_deploy(resource_name) ⇒ ChefSpec::Matchers::ResourceMatcher
Assert that a
deploy
resource exists in the Chef run with the action:deploy
. -
#force_deploy_deploy(resource_name) ⇒ ChefSpec::Matchers::ResourceMatcher
Assert that a
deploy
resource exists in the Chef run with the action:force_deploy
. -
#rollback_deploy(resource_name) ⇒ ChefSpec::Matchers::ResourceMatcher
Assert that a
deploy
resource exists in the Chef run with the action:rollback
.
Instance Method Details
#deploy_deploy(resource_name) ⇒ ChefSpec::Matchers::ResourceMatcher
Assert that a deploy
resource exists in the Chef run with the action :deploy
. Given a Chef Recipe that deploys “/tmp/path” as a deploy
:
deploy '/tmp/path' do
action :deploy
end
The Examples section demonstrates the different ways to test a deploy
resource with ChefSpec.
39 40 41 |
# File 'lib/chefspec/api/deploy.rb', line 39 def deploy_deploy(resource_name) ChefSpec::Matchers::ResourceMatcher.new(:deploy, :deploy, resource_name) end |
#force_deploy_deploy(resource_name) ⇒ ChefSpec::Matchers::ResourceMatcher
Assert that a deploy
resource exists in the Chef run with the action :force_deploy
. Given a Chef Recipe that force_deploys “/tmp/path” as a deploy
:
deploy '/tmp/path' do
action :force_deploy
end
The Examples section demonstrates the different ways to test a deploy
resource with ChefSpec.
76 77 78 |
# File 'lib/chefspec/api/deploy.rb', line 76 def force_deploy_deploy(resource_name) ChefSpec::Matchers::ResourceMatcher.new(:deploy, :force_deploy, resource_name) end |
#rollback_deploy(resource_name) ⇒ ChefSpec::Matchers::ResourceMatcher
Assert that a deploy
resource exists in the Chef run with the action :rollback
. Given a Chef Recipe that rolls back “/tmp/path” as a deploy
:
deploy '/tmp/path' do
action :rollback
end
The Examples section demonstrates the different ways to test a deploy
resource with ChefSpec.
113 114 115 |
# File 'lib/chefspec/api/deploy.rb', line 113 def rollback_deploy(resource_name) ChefSpec::Matchers::ResourceMatcher.new(:deploy, :rollback, resource_name) end |