Initial Chef repository
This commit is contained in:
21
cookbooks/mariadb/libraries/matchers.rb
Normal file
21
cookbooks/mariadb/libraries/matchers.rb
Normal file
@@ -0,0 +1,21 @@
|
||||
if defined?(ChefSpec)
|
||||
def add_mariadb_configuration(resource_name)
|
||||
ChefSpec::Matchers::ResourceMatcher
|
||||
.new(:mariadb_configuration, :add, resource_name)
|
||||
end
|
||||
|
||||
def remove_mariadb_configuration(resource_name)
|
||||
ChefSpec::Matchers::ResourceMatcher
|
||||
.new(:mariadb_configuration, :remove, resource_name)
|
||||
end
|
||||
|
||||
def add_mariadb_replication(resource_name)
|
||||
ChefSpec::Matchers::ResourceMatcher
|
||||
.new(:mariadb_replication, :add, resource_name)
|
||||
end
|
||||
|
||||
def remove_mariadb_replication(resource_name)
|
||||
ChefSpec::Matchers::ResourceMatcher
|
||||
.new(:mariadb_replication, :remove, resource_name)
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user