Initial Chef repository
This commit is contained in:
9
cookbooks/sudo/libraries/matchers.rb
Normal file
9
cookbooks/sudo/libraries/matchers.rb
Normal file
@@ -0,0 +1,9 @@
|
||||
if defined?(ChefSpec)
|
||||
def install_sudo(resource_name)
|
||||
ChefSpec::Matchers::ResourceMatcher.new(:sudo, :install, resource_name)
|
||||
end
|
||||
|
||||
def remove_sudo(resource_name)
|
||||
ChefSpec::Matchers::ResourceMatcher.new(:sudo, :remove, resource_name)
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user