Module: ChefSpec::API::SubversionMatchers
- Defined in:
- lib/chefspec/api/subversion.rb
Overview
Instance Method Summary collapse
-
#checkout_subversion(resource_name) ⇒ ChefSpec::Matchers::ResourceMatcher
Assert that a
subversion
resource exists in the Chef run with the action:checkout
. -
#export_subversion(resource_name) ⇒ ChefSpec::Matchers::ResourceMatcher
Assert that a
subversion
resource exists in the Chef run with the action:export
. -
#force_export_subversion(resource_name) ⇒ ChefSpec::Matchers::ResourceMatcher
Assert that a
subversion
resource exists in the Chef run with the action:force_export
. -
#sync_subversion(resource_name) ⇒ ChefSpec::Matchers::ResourceMatcher
Assert that a
subversion
resource exists in the Chef run with the action:sync
.
Instance Method Details
#checkout_subversion(resource_name) ⇒ ChefSpec::Matchers::ResourceMatcher
Assert that a subversion
resource exists in the Chef run with the action :checkout
. Given a Chef Recipe that checks out “svn://…” as a subversion
:
subversion 'svn://...' do
action :checkout
end
The Examples section demonstrates the different ways to test a subversion
resource with ChefSpec.
39 40 41 |
# File 'lib/chefspec/api/subversion.rb', line 39 def checkout_subversion(resource_name) ChefSpec::Matchers::ResourceMatcher.new(:subversion, :checkout, resource_name) end |
#export_subversion(resource_name) ⇒ ChefSpec::Matchers::ResourceMatcher
Assert that a subversion
resource exists in the Chef run with the action :export
. Given a Chef Recipe that exports “svn://” as a subversion
:
subversion 'svn://' do
action :export
end
The Examples section demonstrates the different ways to test a subversion
resource with ChefSpec.
76 77 78 |
# File 'lib/chefspec/api/subversion.rb', line 76 def export_subversion(resource_name) ChefSpec::Matchers::ResourceMatcher.new(:subversion, :export, resource_name) end |
#force_export_subversion(resource_name) ⇒ ChefSpec::Matchers::ResourceMatcher
Assert that a subversion
resource exists in the Chef run with the action :force_export
. Given a Chef Recipe that force_exports “svn://” as a subversion
:
subversion 'svn://' do
action :force_export
end
The Examples section demonstrates the different ways to test a subversion
resource with ChefSpec.
113 114 115 |
# File 'lib/chefspec/api/subversion.rb', line 113 def force_export_subversion(resource_name) ChefSpec::Matchers::ResourceMatcher.new(:subversion, :force_export, resource_name) end |
#sync_subversion(resource_name) ⇒ ChefSpec::Matchers::ResourceMatcher
Assert that a subversion
resource exists in the Chef run with the action :sync
. Given a Chef Recipe that syncs “svn://” as a subversion
:
subversion 'svn://' do
action :sync
end
The Examples section demonstrates the different ways to test a subversion
resource with ChefSpec.
150 151 152 |
# File 'lib/chefspec/api/subversion.rb', line 150 def sync_subversion(resource_name) ChefSpec::Matchers::ResourceMatcher.new(:subversion, :sync, resource_name) end |