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