Update cookbooks and add wordpress cookbook
This commit is contained in:
15
cookbooks/tar/libraries/matchers.rb
Normal file
15
cookbooks/tar/libraries/matchers.rb
Normal file
@@ -0,0 +1,15 @@
|
||||
if defined?(ChefSpec)
|
||||
ChefSpec.define_matcher :tar_extract
|
||||
|
||||
def install_tar_package(source)
|
||||
ChefSpec::Matchers::ResourceMatcher.new(:tar_package, :install, source)
|
||||
end
|
||||
|
||||
def extract_tar_extract(source)
|
||||
ChefSpec::Matchers::ResourceMatcher.new(:tar_extract, :extract, source)
|
||||
end
|
||||
|
||||
def extract_local_tar_extract(source)
|
||||
ChefSpec::Matchers::ResourceMatcher.new(:tar_extract, :extract_local, source)
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user