Vendor the external cookbooks
Knife-Zero doesn't include Berkshelf support, so vendoring everything in the repo is convenient again
This commit is contained in:
15
cookbooks/users/libraries/matchers.rb
Normal file
15
cookbooks/users/libraries/matchers.rb
Normal file
@@ -0,0 +1,15 @@
|
||||
if defined?(ChefSpec)
|
||||
ChefSpec.define_matcher :users_manage
|
||||
|
||||
def create_users_manage(resource_name)
|
||||
ChefSpec::Matchers::ResourceMatcher.new(:users_manage,
|
||||
:create,
|
||||
resource_name)
|
||||
end
|
||||
|
||||
def remove_users_manage(resource_name)
|
||||
ChefSpec::Matchers::ResourceMatcher.new(:users_manage,
|
||||
:remove,
|
||||
resource_name)
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user